common: added signal for usr1

ulab-original
Jay Sorg 13 years ago
parent 1f1fd13558
commit 35a22ac307

@ -1917,6 +1917,17 @@ g_signal_pipe(void (*func)(int))
#endif
}
/*****************************************************************************/
/* does not work in win32 */
void APP_CC
g_signal_usr1(void (*func)(int))
{
#if defined(_WIN32)
#else
signal(SIGUSR1, func);
#endif
}
/*****************************************************************************/
/* does not work in win32 */
int APP_CC

@ -218,6 +218,8 @@ void APP_CC
g_signal_terminate(void (*func)(int));
void APP_CC
g_signal_pipe(void (*func)(int));
void APP_CC
g_signal_usr1(void (*func)(int));
int APP_CC
g_fork(void);
int APP_CC

Loading…
Cancel
Save