12 #ifndef __UT_Spawn_h__
13 #define __UT_Spawn_h__
21 #define INVALID_PID (pid_t)-1
34 static void enterWaitLoop();
35 static void pollWaitLoop();
36 static void exitWaitLoop();
56 int detachConsole = 0,
57 bool ignore_output =
false,
58 bool change_process_group =
false);
60 int detachConsole = 0,
61 bool ignore_output =
false,
62 bool change_process_group =
false);
108 UT_API extern void UTkill(pid_t pid,
bool kill_tree=
false);
113 UT_API extern void UTkill(pid_t pid,
bool kill_tree,
bool dump_stack);
void(* UTsysWaitLoop)(int state)
UT_API int UTisRunning(pid_t pid, int *exit_code)
UT_API bool UTcheckProcessId(pid_t pid)
bool UTisValidPid(pid_t pid)
UT_API pid_t UTbackground(const char *name, int full_daemon=0)
UT_API int UTchangeProcessGroup(pid_t pid, pid_t gpid)
UT_API int UTwait(pid_t pid)
UT_API void UTforeground(const char *name="Console")
GLuint const GLchar * name
UT_API void UTterminate(pid_t pid, bool terminate_tree=false)
UT_API int UTisAnyProcessRunning(pid_t pid)
UT_API pid_t UTspawn(const char *string, int detachConsole=0, bool ignore_output=false, bool change_process_group=false)
**If you just want to fire and args
UT_API void UTkill(pid_t pid, bool kill_tree=false)
UT_API pid_t UTspawnvp(const char *const *args, int detachConsole=0, bool ignore_output=false, bool change_process_group=false)