move signal callbacks closer to test code

svn:r670
This commit is contained in:
Niels Provos 2008-02-26 04:54:19 +00:00
parent 7470ce52c5
commit bd31d00fc1

View File

@ -192,23 +192,6 @@ timeout_cb(int fd, short event, void *arg)
test_ok = 1;
}
#ifndef WIN32
static void
signal_cb_sa(int sig)
{
test_ok = 2;
}
static void
signal_cb(int fd, short event, void *arg)
{
struct event *ev = arg;
signal_del(ev);
test_ok = 1;
}
#endif
struct both {
struct event ev;
int nread;
@ -505,6 +488,21 @@ test_fork(void)
cleanup_test();
}
static void
signal_cb_sa(int sig)
{
test_ok = 2;
}
static void
signal_cb(int fd, short event, void *arg)
{
struct event *ev = arg;
signal_del(ev);
test_ok = 1;
}
static void
test_simplesignal(void)
{