Re: SIG_IGN

2004-05-06 Thread Mark Wolgemuth
On May 5, 2004, at 12:21 AM, Cole wrote: Hey Im writing a threaded program to handle connections coming from squid. And the program is working fine, except that i cant seem to set signal(SIGPIPE, SIG_IGN) It doesnt give any errors when performing that command, and then when i check to see what

SIG_IGN

2004-05-05 Thread Cole
Hey Im writing a threaded program to handle connections coming from squid. And the program is working fine, except that i cant seem to set signal(SIGPIPE, SIG_IGN) It doesnt give any errors when performing that command, and then when i check to see what SIGPIPE is set to, it apparently isnt

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-07-22 Thread Matt Dillon
-Matt :- Hunk #1 from commit adds PS_NOCLDWAIT when SIG_IGN is used for : SIGCHLD, so if I use : sigemptyset(&sa.sa_mask); : sa.sa_flags = 0; : sa.sa_handler = SIG_IGN; : sigaction(SIGCHLD, &sa, NULL); : sigaction(SIGCHLD, NULL, &so); : I get ad

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-15 Thread Terry Lambert
Matt Dillon wrote: > Umm. Terry, I really have no idea what you are talking about. I am talking about being able to get the previous behaviour. > What historical behavior? That FreeBSD was not properly > dealing with SIG_IGN when every other UNIX does? > So yo

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-14 Thread Matt Dillon
:Matt Dillon wrote: :> The issue here is first: since we are fixing a bug we might :> as well be as compatible as possible with other platforms and, :> second: on general principles it does make sense to keep SIG_IGN :> operation independant from the newer SA_NOCLDWA

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-14 Thread Terry Lambert
Matt Dillon wrote: > The issue here is first: since we are fixing a bug we might > as well be as compatible as possible with other platforms and, > second: on general principles it does make sense to keep SIG_IGN > operation independant from the newer SA_NOCLDWA

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-13 Thread Matt Dillon
e here is first: since we are fixing a bug we might as well be as compatible as possible with other platforms and, second: on general principles it does make sense to keep SIG_IGN operation independant from the newer SA_NOCLDWAIT stuff. A program using SIG_IGN has absolutely no e

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-13 Thread Terry Lambert
:- Hunk #1 from commit adds PS_NOCLDWAIT when SIG_IGN is used for > : SIGCHLD, so if I use > : sigemptyset(&sa.sa_mask); > : sa.sa_flags = 0; > : sa.sa_handler = SIG_IGN; > : sigaction(SIGCHLD, &sa, NULL); > : sigaction(SIGCHLD, NULL, &so); &g

Re: [Patch?] signal(SIGCHLD, SIG_IGN) is against SUSv2

2001-06-13 Thread Terry Lambert
Cejka Rudolf wrote: > Ok, I repeat it once again - in the full: If I use > > sigemptyset(&sa.sa_mask); > sa.sa_flags = 0; > sa.sa_handler = SIG_IGN; > sigaction(SIGCHLD, &sa, NULL); > > zombies are still created in FreeBSD, which is against SUSv2. You are corr

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-13 Thread David Malone
> I'll take a look at them tonight and (unless Dave wants to) I'll > commit an update to -current and hold off the -stable MFC another > few days. I recieved some mail from Garrett on the standards side of the thing, so I'll read and digest that. I should be able to look after the -c

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-12 Thread Matt Dillon
:- Hunk #1 from commit adds PS_NOCLDWAIT when SIG_IGN is used for : SIGCHLD, so if I use : sigemptyset(&sa.sa_mask); : sa.sa_flags = 0; : sa.sa_handler = SIG_IGN; : sigaction(SIGCHLD, &sa, NULL); : sigaction(SIGCHLD, NULL, &so); : I get additional flag SA_NO

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-12 Thread Cejka Rudolf
ll let Matt do the MFC when he feels ready. Thanks for this commit, but it works exactly in the way, which I wanted to avoid. It is something like "partially submitted and not approved by me". Please, could you look once again on it? Please please please... Thanks. ;-) - Hunk #1 from com

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-11 Thread David Malone
On Sun, Jun 10, 2001 at 05:20:50PM -0700, Peter Wemm wrote: > I agree totally. This should have been done ages ago, I've been burned on > it a few times, but never badly enough to go fix it. I've committed this - I'll let Matt do the MFC when he feels ready. David. To Unsubscribe: send

Re: signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-10 Thread Peter Wemm
Matt Dillon wrote: > > :... > : > :sigemptyset(&sa.sa_mask); > :sa.sa_flags = 0; > :sa.sa_handler = SIG_IGN; > :sigaction(SIGCHLD, &sa, NULL); > : > :z

signal(SIGCHLD, SIG_IGN) patch solving SUSv2 compatibility issue

2001-06-10 Thread Matt Dillon
:... : :sigemptyset(&sa.sa_mask); :sa.sa_flags = 0; :sa.sa_handler = SIG_IGN; :sigaction(SIGCHLD, &sa, NULL); : :zombies are still created in FreeBSD, which is against SUSv2. : :My

Re: [Patch?] signal(SIGCHLD, SIG_IGN) is against SUSv2

2001-06-10 Thread Cejka Rudolf
Terry Lambert wrote (2001/06/08): > > However, if I use "signal(SIGCHLD, SIG_IGN)", zombies are still > > created in FreeBSD, which is against SUSv2. I'm sorry that I used this shortening: I know that signal() is implemented via sigaction() in FreeBSD's libc so I

Re: [Patch?] signal(SIGCHLD, SIG_IGN) is against SUSv2

2001-06-08 Thread Terry Lambert
Cejka Rudolf wrote: > > There is following paragraph in SUSv2: > > If a process sets the action for the SIGCHLD signal to SIG_IGN, > the behaviour is unspecified, except as specified below. If the > action for the SIGCHLD signal is set to SIG_IGN, child processes

Re: [Patch?] signal(SIGCHLD, SIG_IGN) is against SUSv2

2001-06-07 Thread Cejka Rudolf
Oops, kid's bugs. Thanks to David Malone ;-) Cejka Rudolf wrote (2001/06/07): > "if (ps->ps_sigact[_SIG_IDX(SIGCHLD)] = SIG_IGN)" is unnecessary. ^ == > --- sys/kern/kern_sig.c.orig

[Patch?] signal(SIGCHLD, SIG_IGN) is against SUSv2

2001-06-07 Thread Cejka Rudolf
There is following paragraph in SUSv2: If a process sets the action for the SIGCHLD signal to SIG_IGN, the behaviour is unspecified, except as specified below. If the action for the SIGCHLD signal is set to SIG_IGN, child processes of the calling processes will not be transformed into