Wait for the message handler process to finish

This commit is contained in:
Pasi Kallinen
2016-08-27 20:13:17 +03:00
parent 6fc21bfaa0
commit db83116130

View File

@@ -655,6 +655,9 @@ const char *line;
(void) fprintf(stderr, "Exec to message handler %s failed.\n",
env);
terminate(EXIT_FAILURE);
} else if (f > 0) {
int status;
waitpid(f, &status, 0);
} else if (f == -1) {
perror((char *) 0);
use_pline_handler = FALSE;