Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2018-03-08 10:02:26 +00:00
8 changed files with 22 additions and 7 deletions

3
job.c
View File

@ -43,7 +43,7 @@ struct joblist all_jobs = LIST_HEAD_INITIALIZER(all_jobs);
struct job *
job_run(const char *cmd, struct session *s, const char *cwd,
job_update_cb updatecb, job_complete_cb completecb, job_free_cb freecb,
void *data)
void *data, int flags)
{
struct job *job;
struct environ *env;
@ -110,6 +110,7 @@ job_run(const char *cmd, struct session *s, const char *cwd,
job = xmalloc(sizeof *job);
job->state = JOB_RUNNING;
job->flags = flags;
job->cmd = xstrdup(cmd);
job->pid = pid;