From: Reuben Thomas <rrt@sc3d.org>
Date: Thu, 18 Jan 2018 23:38:41 +0000 (+0000)
Subject: task.c: use better code for checking abnormally-terminating child process
X-Git-Tag: v3.7~91
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cde2edb5e08d7bb2a9d25433399cda087330de7f;p=recode

task.c: use better code for checking abnormally-terminating child process

Use the code that says “Bruno would prefer this”. Assume any compatibility
problems are or can now be solved.
---

diff --git a/src/task.c b/src/task.c
index 75e5ee7..0e9b7ee 100644
--- a/src/task.c
+++ b/src/task.c
@@ -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);