summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-03-08 10:02:26 +0000
committerThomas Adam <thomas@xteddy.org>2018-03-08 10:02:26 +0000
commit9fd995275201893a604d15bb426e0f5a7f7971e6 (patch)
tree5680ec4fe61bc9a544507a402c6598ccd41f45d3 /job.c
parent3c451a64b59a20dac9be9455b02266ca575f4d3b (diff)
parent19f3a5c6120c5d845eb942e67413c03c0c008a87 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'job.c')
-rw-r--r--job.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/job.c b/job.c
index d8f7a7d8..13cca2ac 100644
--- a/job.c
+++ b/job.c
@@ -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;