diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 05:21:03 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 05:21:07 +0100 |
commit | 85db4a5a454c6f27bfb4ffa07b62734277aa3bbb (patch) | |
tree | d753adb34128d7f84204459ad69012ded54529de /src/satd-add.c | |
parent | implement send_string, remove_job (except for running the job), and get_jobs (diff) | |
download | sat-85db4a5a454c6f27bfb4ffa07b62734277aa3bbb.tar.gz sat-85db4a5a454c6f27bfb4ffa07b62734277aa3bbb.tar.bz2 sat-85db4a5a454c6f27bfb4ffa07b62734277aa3bbb.tar.xz |
implement job running in remove_job
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/satd-add.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/satd-add.c b/src/satd-add.c index aa7dde0..5afcf2d 100644 --- a/src/satd-add.c +++ b/src/satd-add.c @@ -26,10 +26,9 @@ /** * Subroutine to the sat daemon: add job. * - * @param argc Should be 4. + * @param argc Should be 3. * @param argv The name of the process, the pathname of the socket, - * the pathname to the state file, and $SAT_HOOK_PATH - * (the pathname of the hook-script.) + * and the pathname to the state file. * @return 0 The process was successful. * @return 1 The process failed queuing the job. */ @@ -40,7 +39,7 @@ main(int argc, char *argv[]) char *message = NULL; int msg_argc; - assert(argc == 4); + assert(argc == 3); t (reopen(STATE_FILENO, O_RDWR)); /* Receive and validate message. */ |