Use signalfd to handle SIGINT and SIGTERM shutdown.

This commit is contained in:
Ian Gulliver
2016-03-08 22:26:04 -08:00
parent ba13ebbe5c
commit e885723c59
3 changed files with 24 additions and 25 deletions

View File

@@ -18,7 +18,6 @@ extern uint32_t peer_count_in, peer_count_out, peer_count_out_in;
void peer_init(void);
void peer_cleanup(void);
void peer_shutdown(int signal);
void peer_epoll_add(struct peer *, uint32_t);
void peer_epoll_del(struct peer *);
void peer_close(struct peer *);