Date: Sat, 21 Sep 1996 19:06:47 +0900 From: Toshihiro Kanda <candy@fct.kgc.co.jp> To: hackers@freebsd.org Subject: SIGFPE and signal(3) Message-ID: <199609211006.TAA03677@xxx.fct.kgc.co.jp>
next in thread | raw e-mail | index | archive | help
Hello. Next program never ends. Why? And how can I handle SIGFPE? Thank you. -------------------- #include <signal.h> #include <stdio.h> void f(int x) { fprintf(stderr, "x = %d\n", x); } int x = 1, y = 0; main() { int z; signal(SIGFPE, f); printf("start\n"); z = x / y; printf("%d\n", z); } ------------------- candy@fct.kgc.co.jp (Toshihiro Kanda)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609211006.TAA03677>