-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Snawoot/signals_to_eventloop
delegated signal handlers to eventloop, removed unneeded includes
- Loading branch information
Showing
5 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
#include <stdbool.h> | ||
#include <evhttp.h> | ||
#include <unistd.h> | ||
#include "bf_types.h" | ||
#include <event.h> | ||
|
||
//Server globals | ||
struct event_base *base = NULL; | ||
bloom_filter_t *Bloom = NULL; | ||
char *snap_path = NULL; | ||
bool dumper_active = false; | ||
pid_t dumper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
//Server globals | ||
#include <stdbool.h> | ||
#include <unistd.h> | ||
#include <event.h> | ||
#include "bf_types.h" | ||
|
||
extern struct event_base *base; | ||
extern bloom_filter_t *Bloom; | ||
extern char *snap_path; | ||
extern bool dumper_active; | ||
extern pid_t dumper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include <evhttp.h> | ||
extern void term_handler(int); | ||
extern void term_handler(evutil_socket_t, short, void *); | ||
extern void dump_handler(evutil_socket_t, short, void *); | ||
extern void child_collector(int); | ||
extern void child_collector(evutil_socket_t, short, void *); |