From: Pasi Kallinen Date: Sat, 27 Aug 2016 17:13:17 +0000 (+0300) Subject: Wait for the message handler process to finish X-Git-Tag: NetHack-3.6.1_RC01~620 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db83116130b913289e1d5d6260c1c7c80e8c9798;p=nethack Wait for the message handler process to finish --- diff --git a/src/pline.c b/src/pline.c index 827b34793..c539218b6 100644 --- a/src/pline.c +++ b/src/pline.c @@ -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;