#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: compress.c,v 1.76 2014/12/11 11:47:08 christos Exp $")
+FILE_RCSID("@(#)$File: compress.c,v 1.77 2014/12/12 16:33:01 christos Exp $")
#endif
#include "magic.h"
strerror(errno));
#endif
n = NODATA;
- } else if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
+ } else if (!WIFEXITED(status)) {
#ifdef DEBUG
- (void)fprintf(stderr, "Child status (0x%x)\n", status);
+ (void)fprintf(stderr, "Child not exited (0x%x)\n",
+ status);
+#endif
+ } else if (WEXITSTATUS(status) != 0) {
+#ifdef DEBUG
+ (void)fprintf(stderr, "Child exited (0x%d)\n",
+ WEXITSTATUS(status));
#endif
- n = NODATA;
}
(void) close(fdin[0]);