summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/rt/tst-posix_spawn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rt/tst-posix_spawn.c b/test/rt/tst-posix_spawn.c
index 28b6500..45cd325 100644
--- a/test/rt/tst-posix_spawn.c
+++ b/test/rt/tst-posix_spawn.c
@@ -26,6 +26,7 @@ void run_cmd(char *cmd)
posix_spawnattr_setflags(&attrs, POSIX_SPAWN_SETPGROUP | POSIX_SPAWN_SETSIGDEF);
posix_spawnattr_setpgroup(&attrs, 0);
posix_spawnattr_setsigdefault(&attrs, &defsignals);
+ posix_spawn_file_actions_init(&actions);
printf("Run command: %s\n", cmd);
status = posix_spawn(&pid, "/bin/sh", &actions, &attrs, argv, environ);