From b73787aeba3cdf95ea546a8bbe0f02992a32ef2d Mon Sep 17 00:00:00 2001 From: skeezix Date: Thu, 4 Mar 2010 20:41:38 -0500 Subject: [PATCH] waitpid() instead of wait() in mount, unmount, and exec of pnds --- lib/pnd_apps.c | 4 ++-- lib/pnd_pndfiles.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pnd_apps.c b/lib/pnd_apps.c index e446c34..07e94ea 100644 --- a/lib/pnd_apps.c +++ b/lib/pnd_apps.c @@ -109,8 +109,8 @@ unsigned char pnd_apps_exec ( char *pndrun, char *fullpath, char *unique_id, // care if it crashed, was killed, was suspended, whatever.) if ( options & PND_EXEC_OPTION_BLOCK ) { int status = 0; - //waitpid ( f, &status. 0 /* no options */ ); - wait ( &status ); + waitpid ( f, &status. 0 /* no options */ ); + //wait ( &status ); } // printf ( "Exiting pnd_apps_exec\n" ); diff --git a/lib/pnd_pndfiles.c b/lib/pnd_pndfiles.c index b18f23f..eee4525 100644 --- a/lib/pnd_pndfiles.c +++ b/lib/pnd_pndfiles.c @@ -198,7 +198,7 @@ static unsigned char pnd_pnd_mountie ( char *pndrun, char *fullpath, char *uniqu // wait until mountscript actually completes int status = 0; - wait ( &status ); + waitpid ( f, &status, 0 /* options */ ); return ( 1 ); } -- 2.39.2