use waitpid() instead of wait()

This commit is contained in:
Boris Faure 2014-10-22 21:08:24 +02:00
parent 76675f6298
commit d671a68877
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
#include "edi_private.h"
#include <stdlib.h>
#include <sys/wait.h>
#define _EDI_WELCOME_PROJECT_NEW_TABLE_WIDTH 4
@ -151,7 +152,7 @@ _edi_welcome_project_new_create_cb(void *data, Evas_Object *obj EINA_UNUSED, voi
execlp(script, script, fullpath, name, user, email, url, NULL);
exit(0);
}
wait(pid);
waitpid(pid, NULL, 0);
_edi_welcome_project_open(fullpath);
}