blob: ab91534a4d37c56c17aecbed929d34de2d28b443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
|