1
1

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

It is not done for the external spell checker either.
Этот коммит содержится в:
Benno Schulenberg 2019-05-28 17:39:19 +02:00
родитель dbdf38cce5
Коммит add1159675

Просмотреть файл

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