openbsd-ports/sysutils/vifm/patches/patch-src_signals_c
landry 37df81f402 Import vifm 0.4.
Vifm is a ncurses based file manager with vi like keybindings. If you
use vi, vifm gives you complete keyboard control over your files without
having to learn a new set of commands.

Ported two years ago by myself, re-submitted by Aaron Stellman. Most
patches from Tobias Ulmer, plus one to fix an ugly out-of-bound access
by me.
2009-08-09 21:49:33 +00:00

30 lines
664 B
Plaintext

$OpenBSD: patch-src_signals_c,v 1.1.1.1 2009/08/09 21:49:33 landry Exp $
--- src/signals.c.orig Wed Jun 4 16:48:31 2008
+++ src/signals.c Sat Aug 8 16:02:07 2009
@@ -37,7 +37,9 @@
#include"config.h"
#include"ui.h"
+volatile sig_atomic_t sigchld_received = 0;
+
/* Handle term resizing in X */
static void
received_sigwinch(void)
@@ -69,12 +71,15 @@ received_sigtstp(void)
static void
received_sigchld(void)
{
+ sigchld_received = 1;
+#if 0
int status;
pid_t pid;
/* This needs to be a loop in case of multiple blocked signals. */
while ((pid = waitpid(-1, &status, WNOHANG)) > 0)
add_finished_job(pid, status);
+#endif
}
static void