diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2016-10-26 19:28:29 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-10 15:59:26 +0800 |
commit | 53dab360a1e0dddcfd83c6cbfc9f720f5e233550 (patch) | |
tree | e9dc884e38188876ac95450fbb2832026dcdfd70 /src/jobs.c | |
parent | Release 0.5.9.1. (diff) | |
download | dash-53dab360a1e0dddcfd83c6cbfc9f720f5e233550.tar.gz dash-53dab360a1e0dddcfd83c6cbfc9f720f5e233550.zip |
trap: Globally rename pendingsigs to pending_sig
This variable does not contain "sigs" (plural). It contains either 0 or (one) signal number of a pending signal. For someone unfamiliar with this code, "pendingsigs" name is confusing - it hints at being an array or bit mask of pending singnals. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> CC: dash@vger.kernel.org Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | src/jobs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jobs.c b/src/jobs.c index 4f02e38..f0d34ab 100644 --- a/src/jobs.c +++ b/src/jobs.c @@ -648,7 +648,7 @@ out: return retval; sigout: - retval = 128 + pendingsigs; + retval = 128 + pending_sig; goto out; } @@ -1147,7 +1147,7 @@ waitproc(int block, int *status) sigfillset(&mask); sigprocmask(SIG_SETMASK, &mask, &oldmask); - while (!gotsigchld && !pendingsigs) + while (!gotsigchld && !pending_sig) sigsuspend(&oldmask); sigclearmask(); |