Added in rudimentary category support for dotdesktop file emitting; ie: PXML's catego...
[pandora-libraries.git] / lib / pnd_pndfiles.c
index 3e3f833..b18f23f 100644 (file)
@@ -3,6 +3,8 @@
 #include <stdlib.h> /* for malloc */
 #include <ctype.h> /* for isprint */
 #include <unistd.h> /* for fork/exec */
+#include <sys/types.h> /* for wait */
+#include <sys/wait.h> /* for wait */
 
 #define __USE_GNU
 #include <string.h> /* for making strcasestr happy */
@@ -194,6 +196,10 @@ static unsigned char pnd_pnd_mountie ( char *pndrun, char *fullpath, char *uniqu
     execv ( pndrun, argv );
   } 
 
+  // wait until mountscript actually completes
+  int status = 0;
+  wait ( &status );
+
   return ( 1 );
 }