Commit 92298f59 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent fda27ccc
...@@ -42,7 +42,7 @@ static BOOL start_screensaver( void ) ...@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment