diff --git a/test/zdtm/live/static/file_shared.c b/test/zdtm/live/static/file_shared.c index b385d78c2..3547146e6 100644 --- a/test/zdtm/live/static/file_shared.c +++ b/test/zdtm/live/static/file_shared.c @@ -36,14 +36,14 @@ int main(int argc, char **argv) if (fd3 == -1) return 1; - test_daemon(); - pid = test_fork(); if (pid == -1) return 1; else if (pid) { fcntl(fd2, F_SETFD, 1); + + test_daemon(); test_waitsig(); off = lseek(fd, OFFSET, SEEK_SET); if (off == (off_t) -1)