aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test.c4
1 files 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)