diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-05-28 23:30:47 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-05-28 23:30:47 -0400 |
commit | a0ae0b09368e6dbfa82860187dcd6fdf86d86fee (patch) | |
tree | 555e49882b42e32a6b38b51020a3d37a7f42e018 /src/process/posix_spawn_file_actions_destroy.c | |
parent | d6c0c9784615ddb316ace52f3a9e2f025214ba2a (diff) | |
download | musl-a0ae0b09368e6dbfa82860187dcd6fdf86d86fee.tar.gz musl-a0ae0b09368e6dbfa82860187dcd6fdf86d86fee.tar.bz2 musl-a0ae0b09368e6dbfa82860187dcd6fdf86d86fee.tar.xz musl-a0ae0b09368e6dbfa82860187dcd6fdf86d86fee.zip |
add file actions support to posix_spawn
Diffstat (limited to 'src/process/posix_spawn_file_actions_destroy.c')
-rw-r--r-- | src/process/posix_spawn_file_actions_destroy.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/process/posix_spawn_file_actions_destroy.c b/src/process/posix_spawn_file_actions_destroy.c index c2501ddf..3251babb 100644 --- a/src/process/posix_spawn_file_actions_destroy.c +++ b/src/process/posix_spawn_file_actions_destroy.c @@ -1,9 +1,14 @@ #include <spawn.h> #include <stdlib.h> +#include "fdop.h" int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *fa) { - // FIXME - free(fa->__actions); + struct fdop *op = fa->__actions, *next; + while (op) { + next = op->next; + free(op); + op = next; + } return 0; } |