From fc9f08235bcec4551afa531eeff09e572f56fcf4 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 23 Aug 2010 17:36:32 +0000 Subject: [PATCH] Can't call event_del() without event_set() first - so call event_set() when setting up the client. --- client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client.c b/client.c index 3ee3e4ef..e6b17c59 100644 --- a/client.c +++ b/client.c @@ -93,6 +93,7 @@ server_started: if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) fatal("fcntl failed"); imsg_init(&client_ibuf, fd); + event_set(&client_event, fd, EV_READ, client_callback, NULL); if (cmdflags & CMD_SENDENVIRON) client_send_environ();