diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-08-29 14:44:55 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-08-29 14:44:55 +0000 |
commit | ee44a8dca967ea1b3a85d21ff94b3a87c5f30afe (patch) | |
tree | 2bcfab21ecc7ff81d58ae0b1c5117734660016eb | |
parent | 89acd757d0ac9887fc938da32a5d4ba303dce121 (diff) |
Sync OpenBSD patchset 753:
Can't call event_del() without event_set() first - so call event_set()
when setting up the client.
-rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: client.c,v 1.96 2010-08-29 14:43:45 tcunha Exp $ */ +/* $Id: client.c,v 1.97 2010-08-29 14:44:55 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -97,6 +97,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(); |