diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-19 04:15:20 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-19 04:15:20 +0100 |
commit | 11dd41ce4b465f6260ce68aa050a488f88f694eb (patch) | |
tree | 32cf857bcd71798adc6184dd24fe358ae0048188 /main.c | |
parent | 42f4e3c4413ad35e3815f25211fee95d775488a7 (diff) |
first try at implementing job creation
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -23,12 +23,13 @@ int main(int argc, char *argv[]) { goto finish; } - manager_dump_names(m, stdout); - /* if ((r = manager_add_job(m, JOB_START, milestone, JOB_REPLACE, &job)) < 0) { */ - /* fprintf(stderr, "Failed to start default milestone: %s\n", strerror(-r)); */ - /* goto finish; */ - /* } */ + if ((r = manager_add_job(m, JOB_START, milestone, JOB_REPLACE, &job)) < 0) { + fprintf(stderr, "Failed to start default milestone: %s\n", strerror(-r)); + goto finish; + } + + manager_dump_names(m, stdout); retval = 0; |