summaryrefslogtreecommitdiff
path: root/www/w3m/patches/patch-ab
blob: 82b0c4e1317d45e33af30f2607cd53460d4d570b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ab,v 1.10 2008/12/13 08:16:07 obache Exp $

Suspend the job w3m belongs to, not w3m only.

--- main.c.orig	Mon Jan 28 02:52:03 2002
+++ main.c
@@ -2221,7 +2221,17 @@
 	shell = "/bin/sh";
     system(shell);
 #else				/* SIGSTOP */
+#ifdef SIGTSTP
+    signal(SIGTSTP, SIG_DFL);  /* just in case */
+    /*
+     * Note: If susp() was called from SIGTSTP handler,
+     * unblocking SIGTSTP would be required here.
+     * Currently not.
+     */ 
+    kill(0, SIGTSTP);  /* stop whole job, not a single process */
+#else
     kill((pid_t) 0, SIGSTOP);
+#endif
 #endif				/* SIGSTOP */
     fmInit();
     displayBuffer(Currentbuf, B_FORCE_REDRAW);