From owner-freebsd-current Sat Aug 23 18:07:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA25875 for current-outgoing; Sat, 23 Aug 1997 18:07:14 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id SAA25833; Sat, 23 Aug 1997 18:07:04 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA05197; Sat, 23 Aug 1997 17:57:37 -0700 From: Terry Lambert Message-Id: <199708240057.RAA05197@phaeton.artisoft.com> Subject: Re: I've broken ping To: marcs@znep.com (Marc Slemko) Date: Sat, 23 Aug 1997 17:57:37 -0700 (MST) Cc: sef@Kithrup.COM, julian@FreeBSD.ORG, current@FreeBSD.ORG In-Reply-To: from "Marc Slemko" at Aug 23, 97 01:19:45 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Running under 2.2-stable from a week or two ago, both the 2.2 and -current > ping are still broken. I am seeing it hang in pr_addr if the reverse isn't > resolvable; ^C wont kill it because it appears like a function call is > being restarted. I am confused about why this is happening. ISTR some > changes in FreeBSD WRT this that I haven't had time to follow. > > Changing the sigaction() back to a signal() fixes this particular case. > The signal() man page says function calls will be restarted, but the > sigaction() man page implies they won't without SA_RESTART. That follows > with what I am aware that recent BSD code does. It doesn't seem to fit > with what I am seeing. We went over the whole signal fiasco a while back. Restart depends on the compatability interface use to set the thing up. You could have equally done: siginterrupt( SIGINT, 1); siginterrupt( SIGALRM, 1); to stop them restarting, and left it "signal()". Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.