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            =   [EMAIL PROTECTED]
Senior Systems Programmer           or  [EMAIL PROTECTED]
Rensselaer Polytechnic Institute    or  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to