Also be more protective in getsid().
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Why?
| sys/kern/kern_prot.c | ||
|---|---|---|
| 247–250 | There is no corresponding check p->p_pgrp != NULL in sys_getpgid() above. I suspect it's impossible to have a NULL p->p_pgrp or p->p_pgrp->pg_session. | |
Comment Actions
https://gitlab.haskell.org/ghc/ghc/-/work_items/27512#note_686988 > But the hypothesis here is that getpgid on a zombie process fails, probably ESRCH.
| sys/kern/kern_prot.c | ||
|---|---|---|
| 247–250 | For p_pgrp yes, it is only cleared on reap. | |
| sys/kern/kern_prot.c | ||
|---|---|---|
| 247–250 | I dropped the p_pgrp check, but kept pg_session. I think this should follow the existing pattern for now, and cleaned with the global sweep. | |
| sys/kern/kern_prot.c | ||
|---|---|---|
| 252 | Also need to initialize error to 0 for the pid == 0 case. | |