From c371f69e2c8bdd249c94635db459361d90d8bd1b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 21 Oct 2017 23:09:05 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.c b/test.c index a233761..62113d9 100644 --- a/test.c +++ b/test.c @@ -20,7 +20,7 @@ static pid_t pid; #define assert(e)\ (errno = 0, (e) ? 0 :\ (fprintf(stderr, "FAILURE: %s; errno=%s; line=%i\n",\ - #e, strerror(errno), __LINE__), exit(1), 0)) + #e, strerror(errno), __LINE__), exit(1), 0)) static void touch(const char *path) @@ -337,8 +337,8 @@ main(void) touch(".test.sock"); assert((pid = fork()) != -1); + alarm(1); if (!pid) { - alarm(1); pdeath(); fd = open("/dev/null", O_WRONLY); if (fd >= 0 && fd != STDERR_FILENO) -- cgit v1.2.3-70-g09d2