common: added signal for usr1
This commit is contained in:
parent
1f1fd13558
commit
35a22ac307
@ -1917,6 +1917,17 @@ g_signal_pipe(void (*func)(int))
|
|||||||
#endif
|
#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 */
|
/* does not work in win32 */
|
||||||
int APP_CC
|
int APP_CC
|
||||||
|
@ -218,6 +218,8 @@ void APP_CC
|
|||||||
g_signal_terminate(void (*func)(int));
|
g_signal_terminate(void (*func)(int));
|
||||||
void APP_CC
|
void APP_CC
|
||||||
g_signal_pipe(void (*func)(int));
|
g_signal_pipe(void (*func)(int));
|
||||||
|
void APP_CC
|
||||||
|
g_signal_usr1(void (*func)(int));
|
||||||
int APP_CC
|
int APP_CC
|
||||||
g_fork(void);
|
g_fork(void);
|
||||||
int APP_CC
|
int APP_CC
|
||||||
|
Loading…
Reference in New Issue
Block a user