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 /istream.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 'istream.c')
-rw-r--r-- | istream.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: istream.c,v 1.20 2003/01/20 15:25:30 ukai Exp $ */ +/* $Id: istream.c,v 1.21 2003/02/18 15:43:25 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include "istream.h" @@ -183,9 +183,9 @@ ISclose(InputStream stream) if (stream == NULL || stream->base.close == NULL || stream->base.type & IST_UNCLOSE) return -1; - prevtrap = signal(SIGINT, SIG_IGN); + prevtrap = mySignal(SIGINT, SIG_IGN); stream->base.close(stream->base.handle); - signal(SIGINT, prevtrap); + mySignal(SIGINT, prevtrap); return 0; } |