summaryrefslogtreecommitdiff
path: root/debian/patches/0125-scanadf-SIGCHLD.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-09 08:47:12 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-09 08:47:12 +0200
commit311a42d3c545f079f8a9428c52fbdc73731bdc37 (patch)
treed41dcf944b969257cd5ed62ccb7166305015a642 /debian/patches/0125-scanadf-SIGCHLD.patch
parent4a8a70149879404d36ccd39c5983e3a9760af07e (diff)
parent16a4948c7243ab0e228780b3a2b9aea97900f32a (diff)
Merge branch 'release/debian/1.0.14-13'debian/1.0.14-13
Diffstat (limited to 'debian/patches/0125-scanadf-SIGCHLD.patch')
-rw-r--r--debian/patches/0125-scanadf-SIGCHLD.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/0125-scanadf-SIGCHLD.patch b/debian/patches/0125-scanadf-SIGCHLD.patch
new file mode 100644
index 0000000..ab91534
--- /dev/null
+++ b/debian/patches/0125-scanadf-SIGCHLD.patch
@@ -0,0 +1,19 @@
+Description: Sets SIGCHLD to SIG_DFL before execle().
+Author: Jakub Wilk <jwilk@debian.org>
+Origin: http://www.opengroup.org/onlinepubs/009695399/functions/exec.html
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596232
+Last-Update: 2014-12-03
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/src/scanadf.c
+===================================================================
+--- trunk.orig/src/scanadf.c
++++ trunk/src/scanadf.c
+@@ -1213,6 +1213,7 @@ scan_it_raw (const char *fname, SANE_Boo
+
+ case 0:
+ /* in child process */
++ signal(SIGCHLD, SIG_DFL);
+ sprintf(cmd, "%s '%s'", script, fname);
+ /* system(cmd); */
+ execle(script, script, fname, NULL, environ);