commit add1159675182355d7c73af14ff8fb1bcf051435
parent dbdf38cce503ce7ea64ff6523727a9cd6853c4ee
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 28 May 2019 17:39:19 +0200
tweaks: don't bother checking the return value of wait()
It is not done for the external spell checker either.
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -1055,10 +1055,9 @@ bool execute_command(const char *command)
}
/* Wait for the external command (and possibly data sender) to terminate. */
- if (wait(NULL) == -1)
- nperror("wait");
- if (should_pipe && (wait(NULL) == -1))
- nperror("wait");
+ wait(NULL);
+ if (should_pipe)
+ wait(NULL);
/* Restore the original handler for SIGINT. */
sigaction(SIGINT, &oldaction, NULL);