version 1.26, 2012/01/29 02:22:11 |
version 1.27, 2012/07/10 11:53:01 |
|
|
|
|
#include <fcntl.h> |
#include <fcntl.h> |
#include <paths.h> |
#include <paths.h> |
|
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
|
|
log_debug("free job %p: %s", job, job->cmd); |
log_debug("free job %p: %s", job, job->cmd); |
|
|
LIST_REMOVE(job, lentry); |
LIST_REMOVE(job, lentry); |
xfree(job->cmd); |
free(job->cmd); |
|
|
if (job->freefn != NULL && job->data != NULL) |
if (job->freefn != NULL && job->data != NULL) |
job->freefn(job->data); |
job->freefn(job->data); |
|
|
if (job->fd != -1) |
if (job->fd != -1) |
close(job->fd); |
close(job->fd); |
|
|
xfree(job); |
free(job); |
} |
} |
|
|
/* Job buffer error callback. */ |
/* Job buffer error callback. */ |