Date: Fri, 7 May 1999 18:46:13 +0200 (CEST) From: Ludo Koren <ludo_koren@tempest.sk> To: freebsd-hackers@freebsd.org Message-ID: <199905071646.SAA32811@t15.tempest.sk>
next in thread | raw e-mail | index | archive | help
Hi. I am running 3.1-STABLE and developing a program which uses ncurses. After localization of the problem, I minimized it to the following: #include <stdio.h> #include <ncurses.h> #include <signal.h> int main() { struct sigaction act; act.sa_handler = SIG_IGN; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaction(SIGINT,&act,0); sigaction(SIGINT,0,&act); printf("%d\n", act.sa_handler == SIG_IGN); initscr(); sigaction(SIGINT,0,&act); printf("%d\n", act.sa_handler == SIG_IGN); return 0; } Could somebody point, why the first output is 1 and the second is 0? Is it bug or feature. Any help is appreciated. Regards, ludo PS: I hope, it is the appropriate list. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905071646.SAA32811>