]> granicus.if.org Git - recode/commitdiff
task.c: use better code for checking abnormally-terminating child process
authorReuben Thomas <rrt@sc3d.org>
Thu, 18 Jan 2018 23:38:41 +0000 (23:38 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 23 Jan 2018 07:02:42 +0000 (07:02 +0000)
Use the code that says “Bruno would prefer this”. Assume any compatibility
problems are or can now be solved.

src/task.c

index 75e5ee780bdb9e654fd8811a64bbc99a603aa269..0e9b7ee284160bce3148c0441de33019df5cbada 100644 (file)
@@ -611,13 +611,9 @@ perform_pipe_sequence (RECODE_TASK task)
     {
       /* Diagnose and abort on any abnormally terminating child.  */
 
-#if 0                          /* FIXME: Bruno would prefer this.  */
       if (!(WIFEXITED (wait_status)
            || (WIFSIGNALED (wait_status)
                && WTERMSIG (wait_status) == SIGPIPE)))
-#endif
-      if ((wait_status & BIT_MASK (8)) != 0
-         && (wait_status & BIT_MASK (8)) != SIGPIPE)
        {
          recode_error (outer, _("Child process wait status is 0x%0.2x"),
                        wait_status);