Re: *sigpause hanging on 8.x+

2010-07-12 Thread Kostik Belousov
On Sun, Jul 11, 2010 at 07:17:27PM -0400, Alexander Kabaev wrote: > On Sun, 11 Jul 2010 15:59:05 -0700 > Garrett Cooper wrote: > > > > +       if (!_SIG_VALID(how)) > > > +               return (-EINVAL); > > -EINVAL? Smells too much of Linux, try returning EINVAL instead. Mmm, if (!_SIG

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
On Sun, Jul 11, 2010 at 4:19 PM, Garrett Cooper wrote: > 2010/7/11 Alexander Kabaev : >> On Sun, 11 Jul 2010 15:59:05 -0700 >> Garrett Cooper wrote: >> >>> > +       if (!_SIG_VALID(how)) >>> > +               return (-EINVAL); >> >> -EINVAL? Smells too much of Linux, try returning EINVAL instead

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Alexander Kabaev
On Sun, 11 Jul 2010 15:59:05 -0700 Garrett Cooper wrote: > > +       if (!_SIG_VALID(how)) > > +               return (-EINVAL); -EINVAL? Smells too much of Linux, try returning EINVAL instead. -- Alexander Kabaev signature.asc Description: PGP signature

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
2010/7/11 Alexander Kabaev : > On Sun, 11 Jul 2010 15:59:05 -0700 > Garrett Cooper wrote: > >> > +       if (!_SIG_VALID(how)) >> > +               return (-EINVAL); > > -EINVAL? Smells too much of Linux, try returning EINVAL instead. Wow, I'm batting 1,000 today. Please completely ignore my prev

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
On Sun, Jul 11, 2010 at 3:35 PM, Garrett Cooper wrote: > 2010/7/11 Kostik Belousov : >> On Sun, Jul 11, 2010 at 02:30:01PM -0700, Garrett Cooper wrote: >>> On Sun, Jul 11, 2010 at 2:08 PM, Kostik Belousov >>> wrote: >>> > On Sun, Jul 11, 2010 at 12:39:39PM -0700, Garrett Cooper wrote: >>> >> So,

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
2010/7/11 Kostik Belousov : > On Sun, Jul 11, 2010 at 02:30:01PM -0700, Garrett Cooper wrote: >> On Sun, Jul 11, 2010 at 2:08 PM, Kostik Belousov wrote: >> > On Sun, Jul 11, 2010 at 12:39:39PM -0700, Garrett Cooper wrote: >> >> So, long story short... I've basically ported the open posix testsuite

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Kostik Belousov
On Sun, Jul 11, 2010 at 02:30:01PM -0700, Garrett Cooper wrote: > On Sun, Jul 11, 2010 at 2:08 PM, Kostik Belousov wrote: > > On Sun, Jul 11, 2010 at 12:39:39PM -0700, Garrett Cooper wrote: > >> So, long story short... I've basically ported the open posix testsuite > >> to FreeBSD, and one of the

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
On Sun, Jul 11, 2010 at 2:08 PM, Kostik Belousov wrote: > On Sun, Jul 11, 2010 at 12:39:39PM -0700, Garrett Cooper wrote: >> So, long story short... I've basically ported the open posix testsuite >> to FreeBSD, and one of the tests tests out sigpause. Unfortunately the >> sucker hangs on my dev bo

Re: *sigpause hanging on 8.x+

2010-07-11 Thread Kostik Belousov
On Sun, Jul 11, 2010 at 12:39:39PM -0700, Garrett Cooper wrote: > So, long story short... I've basically ported the open posix testsuite > to FreeBSD, and one of the tests tests out sigpause. Unfortunately the > sucker hangs on my dev box at home. > > I've written a short testcase that demonstrate

*sigpause hanging on 8.x+

2010-07-11 Thread Garrett Cooper
So, long story short... I've basically ported the open posix testsuite to FreeBSD, and one of the tests tests out sigpause. Unfortunately the sucker hangs on my dev box at home. I've written a short testcase that demonstrates this. It prints out: $ ~/test_sigpause 0 And proceeds to be unresponsi