1 // Copyright 2005 Ben Hutchings <ben@decadentplace.org.uk>.
2 // See the file "COPYING" for licence details.
4 #ifndef INC_AUTO_PROC_HPP
5 #define INC_AUTO_PROC_HPP
9 #include "auto_handle.hpp"
11 struct auto_proc_factory
13 pid_t operator()() const { return -1; }
16 struct auto_kill_proc_closer
18 void operator()(pid_t pid) const;
20 typedef auto_handle<pid_t, auto_kill_proc_closer, auto_proc_factory>
23 struct auto_wait_proc_closer
25 void operator()(pid_t pid) const;
27 typedef auto_handle<pid_t, auto_wait_proc_closer, auto_proc_factory>
30 #endif // !INC_AUTO_PROC_HPP