tweaks: don't bother checking the return value of wait()

It is not done for the external spell checker either.
master
Benno Schulenberg 2019-05-28 17:39:19 +02:00
parent dbdf38cce5
commit add1159675
1 changed files with 3 additions and 4 deletions

View File

@ -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);