File mouseemu.nofork.patch of Package mouseemu

#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_nofork.dpatch by  <gaudenz@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Don't kill ourselves if not forking into the background

@DPATCH@

---
 mouseemu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mouseemu.c
+++ b/mouseemu.c
@@ -706,7 +706,7 @@ startops:
 		}
 		/* tell the parent we are running without problems */
 		/* What should we do if the parent is dead? */
-		if (answer) {
+		if (answer && !nofork) {
 			answer=0;
 			kill(getppid(), SIGUSR1);
 		}