From: skeezix Date: Fri, 5 Mar 2010 01:41:38 +0000 (-0500) Subject: waitpid() instead of wait() in mount, unmount, and exec of pnds X-Git-Tag: Release-2010-05/1~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b73787aeba3cdf95ea546a8bbe0f02992a32ef2d;p=pandora-libraries.git waitpid() instead of wait() in mount, unmount, and exec of pnds --- 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 ); }