aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-30 03:08:06 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-01-30 03:08:06 -0800
commit3f8baeba2069fe49cc408373657d7e2585e1b095 (patch)
tree901a10b0cfc1ae4818464712cc26d2efc38a5008 /proc.cpp
parent1879dc4b595e1209d2c7ea159fb6e37287edd520 (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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.cpp b/proc.cpp
index fe9c3d41..51f34d31 100644
--- a/proc.cpp
+++ b/proc.cpp
@@ -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;
}