From 8d7f5e6241178648cb4451694e1e909cb0e6931c Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Tue, 18 Feb 2003 15:43:23 +0000 Subject: [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 --- fm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fm.h') diff --git a/fm.h b/fm.h index b776664..969112a 100644 --- a/fm.h +++ b/fm.h @@ -1,4 +1,4 @@ -/* $Id: fm.h,v 1.112 2003/02/05 16:43:57 ukai Exp $ */ +/* $Id: fm.h,v 1.113 2003/02/18 15:43:24 ukai Exp $ */ /* * w3m: WWW wo Miru utility * @@ -781,7 +781,7 @@ global char fmInitialized init(FALSE); global char QuietMessage init(FALSE); global char TrapSignal init(TRUE); #define TRAP_ON if (TrapSignal) { \ - prevtrap = signal(SIGINT, KeyAbort); \ + prevtrap = mySignal(SIGINT, KeyAbort); \ if (fmInitialized) \ term_cbreak(); \ } @@ -789,7 +789,7 @@ global char TrapSignal init(TRUE); if (fmInitialized) \ term_raw(); \ if (prevtrap) \ - signal(SIGINT, prevtrap); \ + mySignal(SIGINT, prevtrap); \ } extern unsigned char GlobalKeymap[]; -- cgit v1.2.3