]> git.evergreen-ils.org Git - OpenSRF.git/blob - include/opensrf/osrf_prefork.h
Docs: Keep all source syntax consistent in README
[OpenSRF.git] / include / opensrf / osrf_prefork.h
1 #ifndef OSRF_PREFORK_H
2 #define OSRF_PREFORK_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /* we receive data.  we find the next child in
9         line that is available.  pass the data down that childs pipe and go
10         back to listening for more data.
11         when we receive SIGCHLD, we check for any dead children and clean up
12         their respective prefork_child objects, close pipes, etc.
13
14         we build a select fd_set with all the child pipes (going to the parent) 
15         when a child is done processing a request, it writes a small chunk of 
16         data to the parent to alert the parent that the child is again available 
17         */
18
19 int osrf_prefork_run(const char* appname);
20
21 #ifdef __cplusplus
22 }
23 #endif
24
25 #endif