On Tue, 8 Jan 2013, Daniel Eischen wrote:

On Tue, 8 Jan 2013, Richard Sharpe wrote:

[ ... ]

Well, it turns out that your suggestion was correct.

I did some more searching and found another similar suggestion, so I
gave it a whirl, and it works.

Now, my problem is that Jeremy Allison thinks that it is a fugly hack.
This means that I will probably have big problems getting a patch for
this into Samba.

I don't understand why JA thinks this is a hack.  Their current
method doesn't work, or at least isn't portable.  I've tried this
on Solaris 10, and it works just as it does in FreeBSD.  Test
program included after signature.

 $ ./test_sigprocmask
 Sending signal 16
 Got signal 16, blocked: true
 Blocking signal 16 using method 0
 Handled signal 16, blocked: false

 Sending signal 16
 Got signal 16, blocked: true
 Blocking signal 16 using method 1
 Handled signal 16, blocked: true

Weird - I just tested it on Linux (2.6.18-238.el5) and it works
the same as FreeBSD and Solaris.  Am I misunderstanding something?
Is it possible that Samba's code is broken on all platforms?

--
DE
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to