aboutsummaryrefslogtreecommitdiff
path: root/src/process/posix_spawn_file_actions_destroy.c
blob: 7e22ee77e2231c63b6cb1c50f99813606922b95b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif