aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-21 17:57:27 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-21 17:57:27 +0000
commitaae61245cf97484f0fa7758af342d29ad123b3e7 (patch)
tree41002f49445458b5b00a40a57dceed8c260d44ca /search.c
parenturl.c (URI_PATTERN): remove \ (diff)
downloadw3m-aae61245cf97484f0fa7758af342d29ad123b3e7.tar.gz
w3m-aae61245cf97484f0fa7758af342d29ad123b3e7.zip
[w3m-dev 02879] reset signals
* etc.c (reset_signals): added * etc.c (mySystem): use reset_signals() * file.c (uncompress_stream): use reset_signals() * proto.h (reset_signals): added * search.c (init_migemo): kill by SIGKILL * search.c (open_migemo): use reset_signals() From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'search.c')
-rw-r--r--search.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/search.c b/search.c
index fc18148..8a0c65b 100644
--- a/search.c
+++ b/search.c
@@ -1,4 +1,4 @@
-/* $Id: search.c,v 1.16 2002/01/17 15:49:04 ukai Exp $ */
+/* $Id: search.c,v 1.17 2002/01/21 17:57:28 ukai Exp $ */
#include "fm.h"
#include "regex.h"
#include <signal.h>
@@ -28,7 +28,7 @@ init_migemo()
fclose(migemow);
migemor = migemow = NULL;
if (migemo_pid)
- kill(migemo_pid, SIGTERM);
+ kill(migemo_pid, SIGKILL);
migemo_pid = 0;
}
@@ -50,10 +50,7 @@ open_migemo(char *migemo_command)
goto err2;
if (migemo_pid == 0) {
/* child */
- signal(SIGINT, SIG_IGN);
-#ifdef SIGCHLD
- signal(SIGCHLD, SIG_IGN);
-#endif
+ reset_signals();
#ifdef HAVE_SETPGRP
setpgrp();
#endif