Added callbacks to handle child process initialization.
[ashd.git] / lib / proc.h
index da230b3..72bff20 100644 (file)
@@ -3,9 +3,9 @@
 
 #include <req.h>
 
-int stdmkchild(char **argv);
+int stdmkchild(char **argv, void (*chinit)(void *), void *idata);
 int sendfd(int sock, int fd, char *data, size_t datalen);
 int recvfd(int sock, char **data, size_t *datalen);
-pid_t stdforkserve(char **argv, struct hthead *req, int fd);
+pid_t stdforkserve(char **argv, struct hthead *req, int fd, void (*chinit)(void *), void *idata);
 
 #endif