void xchat_exec (char *cmd) { #ifdef WIN32 util_exec (cmd); #else int pid = util_exec (cmd); if (pid != -1) /* zombie avoiding system. Don't ask! it has to be like this to work with zvt (which overrides the default handler) */ fe_timeout_add (1000, child_handler, GINT_TO_POINTER (pid)); #endif }
void xchat_exec (const char *cmd) { #ifndef _WIN32 int pid = util_exec (cmd); if (pid != -1) /* zombie avoiding system. Don't ask! it has to be like this to work with zvt (which overrides the default handler) */ g_timeout_add (1000, (GSourceFunc) child_handler, GINT_TO_POINTER (pid)); #endif }
void hexchat_exec (const char *cmd) { util_exec (cmd); }