If you look in the linux sigaction.h file, it has: #define SA_ONESHOT SA_RESETHAND If you look in a bsd sigaction.h file, (for example http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/signal.h?rev=1.9) there is no SA_ONESHOT defined. Given this, I would presume RESETHAND is more portable. -- Todd Fries .. [EMAIL PROTECTED] Index: user.c =================================================================== RCS file: /cvsroot-freemware/freemware/user/user.c,v retrieving revision 1.11 diff -u -r1.11 user.c --- user.c 1999/11/30 23:00:07 1.11 +++ user.c 1999/12/01 23:56:27 @@ -295,7 +295,7 @@ memset(&sg_act, 0, sizeof(sg_act)); sg_act.sa_handler = abort_handler; - sg_act.sa_flags = SA_ONESHOT; + sg_act.sa_flags = SA_RESETHAND; sigaction(SIGINT,&sg_act,NULL); sigaction(SIGALRM,&sg_act,NULL);
