diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-18 15:43:23 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-18 15:43:23 +0000 |
commit | 8d7f5e6241178648cb4451694e1e909cb0e6931c (patch) | |
tree | 71b8855bcfce319867117e958e15969b92dde8be /terms.c | |
parent | [w3m-dev 03753] Fixed multipart.cgi (diff) | |
download | w3m-8d7f5e6241178648cb4451694e1e909cb0e6931c.tar.gz w3m-8d7f5e6241178648cb4451694e1e909cb0e6931c.zip |
[w3m-dev 03758] Re: SVR4 signal behavior
* etc.c (reset_signals): use mySignal()
(setup_child): ditto
(myExec): ditto
(mySignal): added, use sigaction if available
* fm.h (TRAP_ON): use mySignal
(TRAP_OFF): ditto
* istream.c (ISclose): ditto
* main.c (sig_chld): ditto
(main): ditto
(do_dump): ditto
(resize_hook): ditto
(resize_handler): ditto
(srchcore): ditto
(readsh): ditto
(SigAlarm): ditto
* proto.h (mySignal): added
* terms.c (error_dump): use mySignal()
(set_int): ditto
(mouse_init): ditto
From: Atsushi YOKOYAMA <yoko-a@cmh.fuchu.toshiba.co.jp>
Diffstat (limited to 'terms.c')
-rw-r--r-- | terms.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -1,4 +1,4 @@ -/* $Id: terms.c,v 1.45 2003/02/06 17:23:18 ukai Exp $ */ +/* $Id: terms.c,v 1.46 2003/02/18 15:43:26 ukai Exp $ */ /* * An original curses library for EUC-kanji by Akinori ITO, December 1989 * revised by Akinori ITO, January 1995 @@ -603,7 +603,7 @@ reset_exit(SIGNAL_ARG) MySignalHandler error_dump(SIGNAL_ARG) { - signal(SIGIOT, SIG_DFL); + mySignal(SIGIOT, SIG_DFL); reset_tty(); abort(); SIGNAL_RETURN; @@ -612,17 +612,17 @@ error_dump(SIGNAL_ARG) void set_int(void) { - signal(SIGHUP, reset_exit); - signal(SIGINT, reset_exit); - signal(SIGQUIT, reset_exit); - signal(SIGTERM, reset_exit); - signal(SIGILL, error_dump); - signal(SIGIOT, error_dump); - signal(SIGFPE, error_dump); + mySignal(SIGHUP, reset_exit); + mySignal(SIGINT, reset_exit); + mySignal(SIGQUIT, reset_exit); + mySignal(SIGTERM, reset_exit); + mySignal(SIGILL, error_dump); + mySignal(SIGIOT, error_dump); + mySignal(SIGFPE, error_dump); #ifdef SIGBUS - signal(SIGBUS, error_dump); + mySignal(SIGBUS, error_dump); #endif /* SIGBUS */ - /* signal(SIGSEGV, error_dump); */ + /* mySignal(SIGSEGV, error_dump); */ } @@ -2082,13 +2082,13 @@ mouse_init() } #endif /* defined(FBIO_MODEINFO) || * defined(CONS_MODEINFO) */ - signal(SIGUSR2, SIG_IGN); + mySignal(SIGUSR2, SIG_IGN); mi.operation = MOUSE_MODE; mi.u.mode.mode = 0; mi.u.mode.signal = SIGUSR2; sysm_handler = NULL; if (ioctl(tty, CONS_MOUSECTL, &mi) != -1) { - signal(SIGUSR2, sysmouse); + mySignal(SIGUSR2, sysmouse); mi.operation = MOUSE_SHOW; ioctl(tty, CONS_MOUSECTL, &mi); sysm_handler = sysm_process_mouse; |