chiark / gitweb /
changelog: Describe 0.3.0~beta2
[secnet.git] / process.h
1 #ifndef process_h
2 #define process_h
3
4 #include <signal.h>
5 #include <sys/wait.h>
6
7 typedef void process_callback_fn(void *cst, pid_t pid, int status);
8 typedef void process_entry_fn(void *cst);
9 typedef void signal_notify_fn(void *cst, int signum);
10
11 extern pid_t makesubproc(process_entry_fn *entry, process_callback_fn *cb,
12                         void *est, void *cbst, cstring_t desc);
13
14 extern void request_signal_notification(int signum, signal_notify_fn *notify,
15                                         void *cst);
16
17 #endif /* process_h */