aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-10 16:16:44 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-10 16:16:44 +0000
commit329cc01d501ff2f809598474ffeda439e7aedd2e (patch)
treee1f0d8b90e36152ac90ec08dbfeac8929083b1ef /file.c
parentfix indent (diff)
downloadw3m-329cc01d501ff2f809598474ffeda439e7aedd2e.tar.gz
w3m-329cc01d501ff2f809598474ffeda439e7aedd2e.zip
[w3m-dev 03622] Re: Error occured while reset
* file.c (uncompress_stream): child process initialized * terms.c (close_tty): close unless stdin,out,err (reset_tty): flush_tty, close_tty (write1): flush_tty (refresh): flush_tty (flush_tty): check ttyf From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/file.c b/file.c
index b57b016..cd63488 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.179 2003/01/10 16:08:21 ukai Exp $ */
+/* $Id: file.c,v 1.180 2003/01/10 16:16:45 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -7808,6 +7808,10 @@ uncompress_stream(URLFile *uf, char **src)
/* fd1[0]: read, fd1[1]: write */
if ((pid1 = fork()) == 0) {
reset_signals();
+ signal(SIGINT, SIG_IGN);
+ close_tty();
+ QuietMessage = TRUE;
+ fmInitialized = FALSE;
close(fd1[0]);
if (tmpf) {
#ifdef USE_BINMODE_STREAM
@@ -7825,10 +7829,6 @@ uncompress_stream(URLFile *uf, char **src)
/* child */
int pid2;
int fd2[2];
- if (fmInitialized) {
- close_tty();
- fmInitialized = FALSE;
- }
if (pipe(fd2) < 0) {
close(fd1[1]);
UFclose(uf);