Ken Thomases : explorer: Use _P_DETACH instead of _P_NOWAIT with spawnvp() to avoid zombies.
Alexandre Julliard
julliard at winehq.org
Thu Dec 1 14:05:32 CST 2011
Module: wine
Branch: master
Commit: 92298f59feeaf3608c2a1970701c83f7f8156f20
URL: http://source.winehq.org/git/wine.git/?a=commit;h=92298f59feeaf3608c2a1970701c83f7f8156f20
Author: Ken Thomases <ken at codeweavers.com>
Date: Wed Nov 30 16:49:41 2011 -0600
explorer: Use _P_DETACH instead of _P_NOWAIT with spawnvp() to avoid zombies.
---
programs/explorer/desktop.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
index b2f7730..bf04d4f 100644
--- a/programs/explorer/desktop.c
+++ b/programs/explorer/desktop.c
@@ -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 );
More information about the wine-cvs
mailing list