mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 02:19:47 +00:00
explorer: Use _P_DETACH instead of _P_NOWAIT with spawnvp() to avoid zombies.
This commit is contained in:
parent
fda27ccc1b
commit
92298f59fe
|
@ -42,7 +42,7 @@ static BOOL start_screensaver( void )
|
||||||
if (using_root)
|
if (using_root)
|
||||||
{
|
{
|
||||||
const char *argv[3] = { "xdg-screensaver", "activate", NULL };
|
const char *argv[3] = { "xdg-screensaver", "activate", NULL };
|
||||||
int pid = spawnvp( _P_NOWAIT, argv[0], argv );
|
int pid = spawnvp( _P_DETACH, argv[0], argv );
|
||||||
if (pid > 0)
|
if (pid > 0)
|
||||||
{
|
{
|
||||||
WINE_TRACE( "started process %d\n", pid );
|
WINE_TRACE( "started process %d\n", pid );
|
||||||
|
|
Loading…
Reference in a new issue