The otherwise aptly-named gobbler_close function neglected to actually
close its file descriptor.
*/
static void gobbler_close(gobbler *g)
*/
static void gobbler_close(gobbler *g)
- { if (g->f.fd != -1) { sel_rmfile(&g->f); g->f.fd = -1; } }
+ { if (g->f.fd != -1) { sel_rmfile(&g->f); close(g->f.fd); g->f.fd = -1; } }
static void gobbler_destroy(gobbler *g) { gobbler_close(g); DESTROY(g); }
static void gobbler_destroy(gobbler *g) { gobbler_close(g); DESTROY(g); }