Sync OpenBSD patchset 753:

Can't call event_del() without event_set() first - so call event_set()
when setting up the client.
This commit is contained in:
Tiago Cunha 2010-08-29 14:44:55 +00:00
parent 89acd757d0
commit ee44a8dca9
1 changed files with 2 additions and 1 deletions

View File

@ -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();