diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-01-29 12:53:33 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-01-29 12:53:33 +0000 |
commit | e23df3af5a57d28ba40b14db1ad6d62f0ee99940 (patch) | |
tree | a70888bbd92b8586121eeac1a508b9f08cb2a91d /job.c | |
parent | 9c1d3046cac8b999e0b2be4bc0f126bd889ea1c1 (diff) | |
download | rtmux-e23df3af5a57d28ba40b14db1ad6d62f0ee99940.tar.gz rtmux-e23df3af5a57d28ba40b14db1ad6d62f0ee99940.tar.bz2 rtmux-e23df3af5a57d28ba40b14db1ad6d62f0ee99940.zip |
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.
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |