Sync OpenBSD patchset 1014:

Call bufferevent_free before closing file descriptor associated with it
or bugs in $EventMechanism on $OtherOS makes libevent get it's knickers
in a twist. From Dylan Alex Simon.
This commit is contained in:
Tiago Cunha
2012-01-29 12:53:33 +00:00
parent 9c1d3046ca
commit e23df3af5a
4 changed files with 12 additions and 12 deletions

4
job.c
View File

@ -123,10 +123,10 @@ job_free(struct job *job)
if (job->pid != -1)
kill(job->pid, SIGTERM);
if (job->fd != -1)
close(job->fd);
if (job->event != NULL)
bufferevent_free(job->event);
if (job->fd != -1)
close(job->fd);
xfree(job);
}