explorer: Use _P_DETACH instead of _P_NOWAIT with spawnvp() to avoid zombies.

This commit is contained in:
Ken Thomases 2011-11-30 16:49:41 -06:00 committed by Alexandre Julliard
parent fda27ccc1b
commit 92298f59fe

View file

@ -42,7 +42,7 @@ static BOOL start_screensaver( void )
if (using_root)
{
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)
{
WINE_TRACE( "started process %d\n", pid );