mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Remove shell_pgid from process_mark_finished_children
It was unused.
This commit is contained in:
parent
182d7ce732
commit
0373a87867
1 changed files with 0 additions and 3 deletions
|
@ -349,9 +349,6 @@ static volatile process_generation_count_t s_sigchld_generation_cnt = 0;
|
|||
static bool process_mark_finished_children(bool block_on_fg) {
|
||||
ASSERT_IS_MAIN_THREAD();
|
||||
|
||||
// This is always called from the main thread (and not forked), so we can cache this value.
|
||||
static pid_t shell_pgid = getpgrp();
|
||||
|
||||
// We can't always use SIGCHLD to determine if waitpid() should be called since it is not
|
||||
// strictly one-SIGCHLD-per-one-child-exited (i.e. multiple exits can share a SIGCHLD call) and
|
||||
// we a) return immediately the first time a dead child is reaped, b) explicitly skip over jobs
|
||||
|
|
Loading…
Reference in a new issue