diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-21 17:57:27 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-21 17:57:27 +0000 |
commit | aae61245cf97484f0fa7758af342d29ad123b3e7 (patch) | |
tree | 41002f49445458b5b00a40a57dceed8c260d44ca /search.c | |
parent | url.c (URI_PATTERN): remove \ (diff) | |
download | w3m-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 '')
-rw-r--r-- | search.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 |