36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
$NetBSD: patch-ab,v 1.12 2012/05/30 06:42:34 wiz Exp $
|
|
|
|
First chunk: adapt for gc-7.2 API change.
|
|
Second chunk: suspend the job w3m belongs to, not w3m only.
|
|
|
|
--- main.c.orig 2011-01-04 09:42:19.000000000 +0000
|
|
+++ main.c
|
|
@@ -833,7 +833,8 @@ main(int argc, char **argv, char **envp)
|
|
mySignal(SIGPIPE, SigPipe);
|
|
#endif
|
|
|
|
- orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
|
|
+ orig_GC_warn_proc = GC_get_warn_proc();
|
|
+ GC_set_warn_proc(wrap_GC_warn_proc);
|
|
err_msg = Strnew();
|
|
if (load_argc == 0) {
|
|
/* no URL specified */
|
|
@@ -2517,7 +2518,17 @@ DEFUN(susp, INTERRUPT SUSPEND, "Stop loa
|
|
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);
|