Sign in
mojo
/
mojo-tools
/
862d13b6f591fb83034e80ed5a8c59fb9d0b7b56
/
.
/
fusl
/
src
/
process
/
posix_spawn_file_actions_destroy.c
blob: 4074ccf35154549c8b55b6cd0c00c7c46540d62f [
file
] [
log
] [
blame
]
#include
<spawn.h>
#include
<stdlib.h>
#include
"fdop.h"
int
posix_spawn_file_actions_destroy
(
posix_spawn_file_actions_t
*
fa
)
{
struct
fdop
*
op
=
fa
->
__actions
,
*
next
;
while
(
op
)
{
next
=
op
->
next
;
free
(
op
);
op
=
next
;
}
return
0
;
}