diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-03-08 10:02:26 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-03-08 10:02:26 +0000 |
commit | 9fd995275201893a604d15bb426e0f5a7f7971e6 (patch) | |
tree | 5680ec4fe61bc9a544507a402c6598ccd41f45d3 /job.c | |
parent | 3c451a64b59a20dac9be9455b02266ca575f4d3b (diff) | |
parent | 19f3a5c6120c5d845eb942e67413c03c0c008a87 (diff) |
Merge branch 'obsd-master'
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |