mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Event base does not need to be global.
This commit is contained in:
parent
b87dc608d9
commit
dd92b6e83d
4 changed files with 10 additions and 14 deletions
4
server.c
4
server.c
|
|
@ -158,7 +158,7 @@ server_create_socket(void)
|
|||
|
||||
/* Fork new server. */
|
||||
int
|
||||
server_start(int lockfd, char *lockfile)
|
||||
server_start(struct event_base *base, int lockfd, char *lockfile)
|
||||
{
|
||||
int pair[2];
|
||||
char *cause;
|
||||
|
|
@ -188,7 +188,7 @@ server_start(int lockfd, char *lockfile)
|
|||
|
||||
/* event_init() was called in our parent, need to reinit. */
|
||||
clear_signals(0);
|
||||
if (event_reinit(ev_base) != 0)
|
||||
if (event_reinit(base) != 0)
|
||||
fatal("event_reinit failed");
|
||||
|
||||
logfile("server");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue