call[fs]cgi: Ensure exit handlers are not called in failing children.
[ashd.git] / lib / proc.h
CommitLineData
0c16b406
FT
1#ifndef _LIB_PROC_H
2#define _LIB_PROC_H
3
992ce9ef
FT
4#include <req.h>
5
6a7a868e 6int stdmkchild(char **argv, void (*chinit)(void *), void *idata);
0c16b406
FT
7int sendfd(int sock, int fd, char *data, size_t datalen);
8int recvfd(int sock, char **data, size_t *datalen);
6a7a868e 9pid_t stdforkserve(char **argv, struct hthead *req, int fd, void (*chinit)(void *), void *idata);
0c16b406
FT
10
11#endif