From: benno Date: Mon, 8 Jan 2018 22:22:28 +0000 (+0000) Subject: update comments that were left behind in the recent unifdef JOB commit X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8345723506ac8eacdb2aba14bdf33efde27a52ec;p=openbsd update comments that were left behind in the recent unifdef JOB commit from Klemens Nanni, thanks. --- diff --git a/bin/ksh/jobs.c b/bin/ksh/jobs.c index 65674ed65ad..c648950e60a 100644 --- a/bin/ksh/jobs.c +++ b/bin/ksh/jobs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: jobs.c,v 1.57 2018/01/05 15:44:31 jca Exp $ */ +/* $OpenBSD: jobs.c,v 1.58 2018/01/08 22:22:28 benno Exp $ */ /* * Process and job control @@ -921,7 +921,7 @@ j_async(void) /* Make j the last async process * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static void j_set_async(Job *j) @@ -957,7 +957,7 @@ j_set_async(Job *j) /* Start a job: set STARTED, check for held signals and set j->last_proc * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static void j_startjob(Job *j) @@ -979,7 +979,7 @@ j_startjob(Job *j) /* * wait for job to complete or change state * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static int j_waitj(Job *j, @@ -1103,7 +1103,7 @@ j_waitj(Job *j, /* SIGCHLD handler to reap children and update job states * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static void j_sigchld(int sig) @@ -1176,7 +1176,7 @@ finished: * and state are updated, asynchronous job notification is done and, * if unneeded, the job is removed. * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static void check_job(Job *j) @@ -1278,7 +1278,7 @@ check_job(Job *j) /* * Print job status in either short, medium or long format. * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static void j_print(Job *j, int how, struct shf *shf) @@ -1385,7 +1385,7 @@ j_print(Job *j, int how, struct shf *shf) /* Convert % sequence to job * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static Job * j_lookup(const char *cp, int *ecodep) @@ -1486,7 +1486,7 @@ static Proc *free_procs; /* allocate a new job and fill in the job number. * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static Job * new_job(void) @@ -1514,7 +1514,7 @@ new_job(void) /* Allocate new process struct * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static Proc * new_proc(void) @@ -1533,7 +1533,7 @@ new_proc(void) /* Take job out of job_list and put old structures into free list. * Keeps nzombies, last_job and async_job up to date. * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static void remove_job(Job *j, const char *where) @@ -1570,10 +1570,10 @@ remove_job(Job *j, const char *where) async_job = NULL; } -/* put j in a particular location (taking it out job_list if it is there - * already) +/* Put j in a particular location (taking it out of job_list if it is + * there already) * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static void put_job(Job *j, int where) @@ -1608,7 +1608,7 @@ put_job(Job *j, int where) /* nuke a job (called when unable to start full job). * - * If jobs are compiled in then this routine expects sigchld to be blocked. + * Expects sigchld to be blocked. */ static int kill_job(Job *j, int sig)