mirror of
https://github.com/opnsense/src.git
synced 2026-05-25 18:54:02 -04:00
linux(4): wait4() returns ESRCH if pid is INT_MIN.
Weird and undocumented patch was added to the Linux kernel in 2017,
fixes wait403 LTP test.
MFC after: 2 weeks
(cherry picked from commit 9103c5582a)
This commit is contained in:
parent
65d3f90d13
commit
ccbef519e0
1 changed files with 4 additions and 0 deletions
|
|
@ -1054,6 +1054,10 @@ linux_wait4(struct thread *td, struct linux_wait4_args *args)
|
|||
LINUX_WCONTINUED | __WCLONE | __WNOTHREAD | __WALL))
|
||||
return (EINVAL);
|
||||
|
||||
/* -INT_MIN is not defined. */
|
||||
if (args->pid == INT_MIN)
|
||||
return (ESRCH);
|
||||
|
||||
options = 0;
|
||||
linux_to_bsd_waitopts(args->options, &options);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue