From owner-freebsd-stable Sat Sep 2 10:48:32 2000 Delivered-To: freebsd-stable@freebsd.org Received: from rr.com (rdu25-12-060.nc.rr.com [24.25.12.60]) by hub.freebsd.org (Postfix) with ESMTP id 31B2037B422 for ; Sat, 2 Sep 2000 10:48:29 -0700 (PDT) Received: (from rhh@localhost) by rr.com (8.9.3/8.9.3) id NAA19001 for stable@freebsd.org; Sat, 2 Sep 2000 13:51:32 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) Date: Sat, 2 Sep 2000 13:51:32 -0400 From: Randall Hopper To: stable@freebsd.org Subject: Question on catching SIGFPE Message-ID: <20000902135131.A18991@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm teaching Python to catch SIGFPE, and currently I have this: #elif defined(__FreeBSD__) #include fpresetsticky( FP_X_INV | FP_X_DZ | FP_X_OFL ); fpsetmask( FP_X_INV | FP_X_DZ | FP_X_OFL ); signal(SIGFPE, handler); which executes on initialization and every time one of these 3 FP exceptions is caught in "handler". It works fine for the first FP exception (handler is called and the above code reexecutes). But for subsequent exceptions, handler is "not" called. Apparently I'm not doing something I should be. What is it? -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message