コード例 #1
0
ファイル: xchat.c プロジェクト: BackupTheBerlios/vertigo
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
}
コード例 #2
0
ファイル: xchat.c プロジェクト: arinity/gchat2
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
}
コード例 #3
0
ファイル: hexchat.c プロジェクト: jereupchurch/hexchat
void
hexchat_exec (const char *cmd)
{
	util_exec (cmd);
}