Potential patch ...

-- 
Kees Cook                                            @debian.org
Description: pass through exit codes when possible, otherwise report
 failure and full waitpid status and exit with a failure.
Author: Kees Cook <k...@debian.org>

Index: faketime-0.9.5/src/faketime.c
===================================================================
--- faketime-0.9.5.orig/src/faketime.c	2014-06-06 01:34:24.000000000 -0700
+++ faketime-0.9.5/src/faketime.c	2014-06-06 01:58:05.714708090 -0700
@@ -335,6 +335,11 @@
     int ret;
     waitpid(child_pid, &ret, 0);
     cleanup_shobjs();
-    exit(ret);
+    if (WIFSIGNALED(ret))
+    {
+      fprintf(stderr, "Caught %s\n", strsignal(WTERMSIG(ret)));
+      exit(EXIT_FAILURE);
+    }
+    exit(WEXITSTATUS(ret));
   }
 }

Reply via email to