From owner-freebsd-bugs@FreeBSD.ORG Wed Jun 22 20:40:20 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ECA216A41C for ; Wed, 22 Jun 2005 20:40:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87A1043D1D for ; Wed, 22 Jun 2005 20:40:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5MKeKCO017326 for ; Wed, 22 Jun 2005 20:40:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5MKeKTU017325; Wed, 22 Jun 2005 20:40:20 GMT (envelope-from gnats) Date: Wed, 22 Jun 2005 20:40:20 GMT Message-Id: <200506222040.j5MKeKTU017325@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Dick Davies Cc: Subject: Re: bin/81555: Cron exits from SIGPIPE after crontab -e when using NSS-LDAP X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dick Davies List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 20:40:20 -0000 The following reply was made to PR bin/81555; it has been noted by GNATS. From: Dick Davies To: Dean Strik Cc: bug-followup@FreeBSD.org Subject: Re: bin/81555: Cron exits from SIGPIPE after crontab -e when using NSS-LDAP Date: Wed, 22 Jun 2005 21:33:07 +0100 * Dean Strik [0625 16:25]: > Dick Davies wrote: > > This also appears to be an issue with non-ldap users on 5.4, providing the system > > has some nss_ldap accounts. I'm not sure whether it's because my initial (ssh) login > > was nss_ldap based. > > Actually it must've been because of your ssh login was nss-ldap based. > You can verify this by restarting sshd after putting your account in > /etc/passwd to test. > > By the way, simply ignoring the SIGPIPE works well for me. Trivial patch > attached. > > Cheers, > Dean > > -- > Dean C. Strik Eindhoven University of Technology > dean@stack.nl | dean@ipnet6.org | http://www.ipnet6.org/ > "This isn't right. This isn't even wrong." -- Wolfgang Pauli > --- usr.sbin/cron/cron/cron.c Sun Jun 12 17:18:18 2005 > +++ usr.sbin/cron/cron/cron.c Sun Jun 12 17:18:36 2005 > @@ -80,6 +80,7 @@ > > parse_args(argc, argv); > > + (void) signal(SIGPIPE, SIG_IGN); > #ifdef USE_SIGCHLD > (void) signal(SIGCHLD, sigchld_handler); > #else That helped for me, thanks - is there any obvious downside to this ? -- 'Why pay the earth for expensive jigsaws? Just take a bag of frozen chips from the freezer and try piecing together potatoes.' -- B Reastford, Iranville, Notts. Rasputin :: Jack of All Trades - Master of Nuns