waitpid() instead of wait() in mount, unmount, and exec of pnds
authorskeezix <skeezix@flotsam-vm.(none)>
Fri, 5 Mar 2010 01:41:38 +0000 (20:41 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Fri, 5 Mar 2010 01:41:38 +0000 (20:41 -0500)
lib/pnd_apps.c
lib/pnd_pndfiles.c

index e446c34..07e94ea 100644 (file)
@@ -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" );
index b18f23f..eee4525 100644 (file)
@@ -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 );
 }