20 #ifndef COIL_PROCESS_H 21 #define COIL_PROCESS_H 27 #include <sys/types.h> 29 #include <coil/stringutil.h> 43 signal(SIGCHLD, SIG_IGN);
46 if((pid = fork()) < 0 )
70 execvp(vstr.front().c_str(), argv);
79 return daemon(nochdir, noclose);
84 #endif // COIL_PROCESS_H int launch_shell(std::string command)
Launching a process.
vstring split(const std::string &input, const std::string &delimiter, bool ignore_empty)
Split string by delimiter.
int daemon(int nochdir, int noclose)
std::vector< std::string > vstring
::pid_t pid_t
Get process ID of the caller process.
char ** toArgv(const vstring &args)
Convert the given string list into the argument list.
Common Object Interface Layer.