Re: cannot print to remote printer

2001-07-16 Thread Terry Lambert
Garrett Wollman wrote: > > I'm not sure about POSIX, but the manpage of nohup does not mention > > SIGCHLD. The only signals I see mentioned in revision 1.8 of nohup.1 > > are SIGHUP and SIGQUIT. > > That is correct. SIGCHLD is entirely irrelevant to `nohup', as the > slightest amount of effort

Re: cannot print to remote printer

2001-07-14 Thread Garrett Wollman
I wrote: >> > The new POSIX draft, at least, sanctions the automatic reset of >> > SIGCHLD to SIG_DFL upon exec(). Terry Lambert appears to have written: >> How does the "NOHUP" program continue to function in >> light of this reset demand? There is no ``demand'' involved. The behavior of the s

Re: cannot print to remote printer

2001-07-13 Thread Giorgos Keramidas
From: Terry Lambert <[EMAIL PROTECTED]> Subject: Re: cannot print to remote printer Date: Fri, Jul 13, 2001 at 10:48:53AM -0700 > Garrett Wollman wrote: > > > The new POSIX draft, at least, sanctions the automatic reset of > > SIGCHLD to SIG_DFL upon exec(). > >

Re: cannot print to remote printer

2001-07-13 Thread Garance A Drosihn
At 12:18 PM +0200 7/12/01, Anton Berezin wrote: >I would also propose to guard printjob.c wait calls from this sort of >error in the future; after all, it *was* an action at a distance, and >it was not strictly easy to find the culprit. Here's a patch which I think covers all the bases mentione

Re: cannot print to remote printer

2001-07-13 Thread Terry Lambert
Garrett Wollman wrote: > > I might be wrong in many ways, but... > > > is it then mandatory that you `reset' SIGCHLD to SIG_DFL ? > > Possibly. In the general case (as specified by standards), what > happens to SIGCHLD if it was set to SIG_IGN before exec() is > ill-defined. Some systems will

Re: cannot print to remote printer

2001-07-12 Thread Joerg Wunsch
As Anton Berezin wrote: > > > - signal(SIGCHLD, SIG_IGN); > > > + signal(SIGCHLD, SIG_DFL); > Umm, I don't understand. I do not want automatic zombie reaping, I want > exactly the opposite, and my patch does just that. Ah sorry, i was confused. -- cheers, J"or

Re: cannot print to remote printer

2001-07-12 Thread Anton Berezin
On Thu, Jul 12, 2001 at 10:40:12PM +0300, Giorgos Keramidas wrote: > Anton Berezin <[EMAIL PROTECTED]> writes: > > Umm, I don't understand. I do not want automatic zombie reaping, I > > want exactly the opposite, and my patch does just that. > I might be wrong in many ways, but... > is it then

Re: cannot print to remote printer

2001-07-12 Thread Garrett Wollman
< said: > I might be wrong in many ways, but... > is it then mandatory that you `reset' SIGCHLD to SIG_DFL ? Possibly. In the general case (as specified by standards), what happens to SIGCHLD if it was set to SIG_IGN before exec() is ill-defined. Some systems will inherit the SIG_IGN setting,

Re: cannot print to remote printer

2001-07-12 Thread Giorgos Keramidas
Anton Berezin <[EMAIL PROTECTED]> writes: > On Thu, Jul 12, 2001 at 08:45:55AM +0200, Joerg Wunsch wrote: > > Anton Berezin <[EMAIL PROTECTED]> wrote: > > > > > if (fork() == 0) { > > > - signal(SIGCHLD, SIG_IGN); > > > + signal(SIGCHLD, SIG_DFL); > > >

Re: cannot print to remote printer

2001-07-12 Thread Garance A Drosihn
At 8:45 AM +0200 7/12/01, Joerg Wunsch wrote: >Anton Berezin <[EMAIL PROTECTED]> wrote: > >> if (fork() == 0) { >> - signal(SIGCHLD, SIG_IGN); >> + signal(SIGCHLD, SIG_DFL); > >This is unportable. His change is pretty portable, as I have been run

Re: cannot print to remote printer

2001-07-12 Thread Anton Berezin
On Thu, Jul 12, 2001 at 08:45:55AM +0200, Joerg Wunsch wrote: > Anton Berezin <[EMAIL PROTECTED]> wrote: > > > if (fork() == 0) { > > - signal(SIGCHLD, SIG_IGN); > > + signal(SIGCHLD, SIG_DFL); > > This is unportable. > If you want automatic zombi

Re: cannot print to remote printer

2001-07-11 Thread Joerg Wunsch
Anton Berezin <[EMAIL PROTECTED]> wrote: > if (fork() == 0) { > - signal(SIGCHLD, SIG_IGN); > + signal(SIGCHLD, SIG_DFL); This is unportable. If you want automatic zombie reaping, better don't use the simplified signal(3) handling, but inste

Re: cannot print to remote printer

2001-07-11 Thread Garance A Drosihn
At 9:43 PM +0200 7/11/01, Anton Berezin wrote: > At 2:55 PM +0200 7/11/01, Georg-W. Koltermann wrote: > > With current as of June 20 I can no longer print to a remote > > printer. Syslog says "filter 'f' exited (retcode=108)". > > > > I added a "set -x" to the filter which is a shell program

Re: cannot print to remote printer

2001-07-11 Thread Anton Berezin
On Wed, Jul 11, 2001 at 02:55:33PM +0200, Georg-W. Koltermann wrote: > Sorry, I was offline for a while (broke my leg). I am now recovering > and slowly catching up. The laptop which had this problem won't be > back on the ethernet for another two weeks, so I won't be able to do > more testing.

Re: cannot print to remote printer

2001-07-11 Thread Georg-W. Koltermann
Sorry, I was offline for a while (broke my leg). I am now recovering and slowly catching up. The laptop which had this problem won't be back on the ethernet for another two weeks, so I won't be able to do more testing. And maybe, since so much time has passed, I'd better CVSup and try again. A

Re: cannot print to remote printer

2001-06-22 Thread Garance A Drosihn
At 2:42 PM +0200 6/22/01, Georg-W. Koltermann wrote: >Hi, > >with current as of June 20 I can no longer print to a remote printer. >Syslog says "filter 'f' exited (retcode=108)". Looking at that section of code, lpd is just doing: if (ifilter < 0) status.w_retcode = 100;

Re: cannot print to remote printer

2001-06-22 Thread Garance A Drosihn
At 2:42 PM +0200 6/22/01, Georg-W. Koltermann wrote: >Hi, > >with current as of June 20 I can no longer print to a remote printer. >Syslog says "filter 'f' exited (retcode=108)". > >I added a "set -x" to the filter which is a shell program, and sure >enough the last action it does is an "exit 0".