*sigpause hanging on 8.x+

Kostik Belousov kostikbel at gmail.com
Mon Jul 12 09:46:51 UTC 2010


On Sun, Jul 11, 2010 at 07:17:27PM -0400, Alexander Kabaev wrote:
> On Sun, 11 Jul 2010 15:59:05 -0700
> Garrett Cooper <yanegomi at gmail.com> wrote:
> 
> > > +       if (!_SIG_VALID(how))
> > > +               return (-EINVAL);
> 
> -EINVAL? Smells too much of Linux, try returning EINVAL instead.
Mmm,
	if (!_SIG_VALID(how)) {
		errno = EINVAL;
		return (-1);
	}
This is libc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100712/2ed7aac3/attachment.pgp


More information about the freebsd-hackers mailing list