=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/job.c,v retrieving revision 1.25 retrieving revision 1.26 diff -c -r1.25 -r1.26 *** src/usr.bin/tmux/job.c 2011/01/26 01:54:56 1.25 --- src/usr.bin/tmux/job.c 2012/01/29 02:22:11 1.26 *************** *** 1,4 **** ! /* $OpenBSD: job.c,v 1.25 2011/01/26 01:54:56 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: job.c,v 1.26 2012/01/29 02:22:11 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 124,133 **** if (job->pid != -1) kill(job->pid, SIGTERM); - if (job->fd != -1) - close(job->fd); if (job->event != NULL) bufferevent_free(job->event); xfree(job); } --- 124,133 ---- if (job->pid != -1) kill(job->pid, SIGTERM); if (job->event != NULL) bufferevent_free(job->event); + if (job->fd != -1) + close(job->fd); xfree(job); }