diff options
author | Paul Smith <psmith@gnu.org> | 2013-04-28 17:31:46 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-04-28 17:31:46 -0400 |
commit | 8b034b7d18a08d3a2378e5b6fc9fbdd1b658f142 (patch) | |
tree | 6e30929c6b4e65c68fb7b81faf1d48035cb605ec /job.c | |
parent | 93843ccd08a8d4dff64c5fb52701e150b35c959d (diff) | |
download | gunmake-8b034b7d18a08d3a2378e5b6fc9fbdd1b658f142.tar.gz |
Small cleanups and fixes.
Diffstat (limited to 'job.c')
-rw-r--r-- | job.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |