mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 08:51:14 -03:00
Attempt to further improve fish's handling when it runs out of fds, and plug some fd leaks
This commit is contained in:
2
proc.cpp
2
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user