File w3m-0.4.1-textarea-segfault.dif of Package w3m

--- w3m-0.5.1/terms.c
+++ w3m-0.5.1/terms.c
@@ -583,7 +583,8 @@
     writestr(T_se);		/* reset terminal */
     flush_tty();
     TerminalSet(tty, &d_ioval);
-    close_tty();
+    if (tty != 2)
+        close_tty();
 }
 
 MySignalHandler
openSUSE Build Service is sponsored by