For pdwait(2) and pddupfd(2), the returned error is kept EINVAL. PR: 297293
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
In e18844223d1eabb7e435ff9da20d88915d3f4675 I changed from unconditional EBADF to unconditional EINVAL, because pdwait::einval test caught it.
Changing it back seems to be not an option.
Comment Actions
Yes, pdwait::einval and pdwait(2) are already in 15.1-R so we need to keep EINVAL in 15.x (I don't object having EBADF in 16 if that makes more sense.)
BTW in lib/libsys/pdfork.2 we still say pddupfd(2) returns EBADF. In this patch we change it to EINVAL. It's only in main so I think we can just choose preferred one and sync the manpage.