summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-04-28 17:31:46 -0400
committerPaul Smith <psmith@gnu.org>2013-04-28 17:31:46 -0400
commit8b034b7d18a08d3a2378e5b6fc9fbdd1b658f142 (patch)
tree6e30929c6b4e65c68fb7b81faf1d48035cb605ec /job.c
parent93843ccd08a8d4dff64c5fb52701e150b35c959d (diff)
downloadgunmake-8b034b7d18a08d3a2378e5b6fc9fbdd1b658f142.tar.gz
Small cleanups and fixes.
Diffstat (limited to 'job.c')
-rw-r--r--job.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/job.c b/job.c
index 07d70c7..6ee6b8f 100644
--- a/job.c
+++ b/job.c
@@ -659,7 +659,7 @@ acquire_semaphore (void)
fl.l_type = F_WRLCK;
fl.l_whence = SEEK_SET;
- fl.l_start = 0; /* lock just one byte */
+ fl.l_start = 0;
fl.l_len = 1;
if (fcntl (sync_handle, F_SETLKW, &fl) != -1)
return &fl;
@@ -976,7 +976,7 @@ reap_children (int block, int err)
/* Search for a child matching the deceased one. */
lastc = 0;
for (c = children; c != 0; lastc = c, c = c->next)
- if (c->remote == remote && c->pid == pid)
+ if (c->pid == pid && c->remote == remote)
break;
if (c == 0)