test-subprocess.h (dovecot-2.3.16) | : | test-subprocess.h (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
(TRUE ? context : \ | (TRUE ? context : \ | |||
CALLBACK_TYPECHECK(func, int(*)(typeof(context)))), \ | CALLBACK_TYPECHECK(func, int(*)(typeof(context)))), \ | |||
continue_test) | continue_test) | |||
void test_subprocess_kill_all(unsigned int timeout_secs); | void test_subprocess_kill_all(unsigned int timeout_secs); | |||
/* Set a cleanup callback that is executed even when the test program crashes or | /* Set a cleanup callback that is executed even when the test program crashes or | |||
exit()s unexpectedly. Note that this may be run in signal context. */ | exit()s unexpectedly. Note that this may be run in signal context. */ | |||
void test_subprocess_set_cleanup_callback(void (*callback)(void)); | void test_subprocess_set_cleanup_callback(void (*callback)(void)); | |||
/* Send a notification signal (SIGHUP) to the given PID */ | ||||
void test_subprocess_notify_signal_send(int signo, pid_t pid); | ||||
/* Send a notificatino signal to the parent process. */ | ||||
void test_subprocess_notify_signal_send_parent(int signo); | ||||
/* Reset any previously sent notification signals. */ | ||||
void test_subprocess_notify_signal_reset(int signo); | ||||
/* Wait until a notification signal is sent, or return immediately if it was | ||||
already sent. test_subprocess_notify_signal_reset() should be called before | ||||
this to make sure it's not returning due to a previously sent signal. | ||||
If the timeout is reached, i_fatal() is called. */ | ||||
void test_subprocess_notify_signal_wait(int signo, unsigned int timeout_msecs); | ||||
void test_subprocesses_init(bool debug); | void test_subprocesses_init(bool debug); | |||
void test_subprocesses_deinit(void); | void test_subprocesses_deinit(void); | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 12 lines changed or added |