diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-30 03:08:06 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-30 03:08:06 -0800 |
commit | 3f8baeba2069fe49cc408373657d7e2585e1b095 (patch) | |
tree | 901a10b0cfc1ae4818464712cc26d2efc38a5008 /proc.cpp | |
parent | 1879dc4b595e1209d2c7ea159fb6e37287edd520 (diff) |
Attempt to further improve fish's handling when it runs out of fds, and plug some fd leaks
Diffstat (limited to 'proc.cpp')
-rw-r--r-- | proc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -409,7 +409,7 @@ static void mark_process_status(const job_t *j, void job_mark_process_as_failed(const job_t *job, process_t *p) { /* The given process failed to even lift off (e.g. posix_spawn failed) and so doesn't have a valid pid. Mark it as dead. */ - for (process_t *cursor = p; p != NULL; p = p->next) + for (process_t *cursor = p; cursor != NULL; cursor = cursor->next) { cursor->completed = 1; } |