diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-01-29 02:22:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-01-29 02:22:11 +0000 |
commit | 9bbc63ed653e6ca73e4eaebd6f52466d53a4da73 (patch) | |
tree | 22cfe4ad5f8797aa880320ce52b51868b36e59a6 /job.c | |
parent | a7a44bfcd9f1eeec2b82b6490b35893dcb7c053f (diff) | |
download | rtmux-9bbc63ed653e6ca73e4eaebd6f52466d53a4da73.tar.gz rtmux-9bbc63ed653e6ca73e4eaebd6f52466d53a4da73.tar.bz2 rtmux-9bbc63ed653e6ca73e4eaebd6f52466d53a4da73.zip |
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
@@ -124,10 +124,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); } |