Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 20:32:04 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Anton Berezin <tobez@FreeBSD.org>
Cc:        current@FreeBSD.org, freebsd-print@bostonradio.org
Subject:   Re: cannot print to remote printer
Message-ID:  <p05101002b7729a5cd5fb@[128.113.24.47]>
In-Reply-To: <20010711214311.C2855@heechee.tobez.org>
References:  <lth8zikptx0.wl@hunter.munich.sgi.com> <p05101003b759266483c2@> <p05101003b759266483c2@[128.113.24.47]> <873d83pquy.wl@wilhelm.noname> <20010711214311.C2855@heechee.tobez.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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, and
>  > sure enough the last action it does is an "exit 0".  So the problem
>  > must be somewhere in lpd.
>
>I could reproduce your problem.  The following patch appears to solve
>it for me:
>
>Index: lpd.c
>===================================================================
>RCS file: /home/ncvs/src/usr.sbin/lpr/lpd/lpd.c,v
>retrieving revision 1.26
>diff -u -r1.26 lpd.c
>--- lpd.c	2001/06/25 01:45:25	1.26
>+++ lpd.c	2001/07/11 19:35:11
>@@ -367,7 +367,7 @@
>  			continue;
>  		}
>  		if (fork() == 0) {
>-			signal(SIGCHLD, SIG_IGN);
>+			signal(SIGCHLD, SIG_DFL);
>  			signal(SIGHUP, SIG_IGN);
>  			signal(SIGINT, SIG_IGN);
>  			signal(SIGQUIT, SIG_IGN);

I had to make this same change to lpr at RPI to get "things" to work
right on some other (non-freebsd) platform, though I did it so long
ago that I don't remember what the problem was.  I have some other
signal-related changes in RPI's version that I intend to merge
into freebsd too, but I'll put this change into freebsd-current
by itself.

I have wondered why I needed that on other platforms but freebsd
didn't seem to need it...   Thanks!

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05101002b7729a5cd5fb>