Removed WNOHANG

SVN revision: 1675
This commit is contained in:
Stefan Ritt 2006-03-15 07:51:43 +00:00
parent 1ad324ef42
commit cfc340279b

View File

@ -1067,7 +1067,7 @@ int subst_shell(char *cmd, char *result, int size)
return 0;
else if (child_pid > 0) {
/* parent process waits for child */
waitpid(child_pid, &status, WNOHANG);
waitpid(child_pid, &status, 0);
/* read back result */
fh = open("/tmp/elog-shell", O_RDONLY);