mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Removed WNOHANG
SVN revision: 1675
This commit is contained in:
parent
1ad324ef42
commit
cfc340279b
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user