repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
synccall: add separate exit_sem to fix thread release logic bug
[musl.git]
/
src
/
process
/
posix_spawn_file_actions_destroy.c
blob
3251babb556cae7cd6c81986b286ee7705e8285b
1
#include <spawn.h>
2
#include <stdlib.h>
3
#include
"fdop.h"
4
5
int
posix_spawn_file_actions_destroy
(
posix_spawn_file_actions_t
*
fa
)
6
{
7
struct
fdop
*
op
=
fa
->
__actions
, *
next
;
8
while
(
op
) {
9
next
=
op
->
next
;
10
free
(
op
);
11
op
=
next
;
12
}
13
return
0
;
14
}