diff options
Diffstat (limited to 'recipes-extended')
-rw-r--r-- | recipes-extended/diffutils/diffutils/sdiff-no-kill.patch | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/recipes-extended/diffutils/diffutils/sdiff-no-kill.patch b/recipes-extended/diffutils/diffutils/sdiff-no-kill.patch index 70e7caf..c9fbc24 100644 --- a/recipes-extended/diffutils/diffutils/sdiff-no-kill.patch +++ b/recipes-extended/diffutils/diffutils/sdiff-no-kill.patch | |||
@@ -1,18 +1,32 @@ | |||
1 | "kill" is not supported by mingw, so compile conditionally, | 1 | Upstream-Status: Backport |
2 | (same condition as another instance of "kill" in the source code). | 2 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
3 | 3 | ||
4 | Upstream-Status: Pending | 4 | From 56225ecca4f9598c0c9dbd7c46a51dd4816a383f Mon Sep 17 00:00:00 2001 |
5 | Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> | 5 | From: Paul Eggert <eggert@cs.ucla.edu> |
6 | Date: Fri, 20 Apr 2018 13:39:15 -0700 | ||
7 | Subject: sdiff: port to mingw | ||
8 | MIME-Version: 1.0 | ||
9 | Content-Type: text/plain; charset=UTF-8 | ||
10 | Content-Transfer-Encoding: 8bit | ||
6 | 11 | ||
12 | Problem reported by Ross Burton (Bug#31218). | ||
13 | * src/sdiff.c (checksigs): Use ‘raise’, not ‘kill’. | ||
14 | --- | ||
15 | src/sdiff.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/sdiff.c b/src/sdiff.c | ||
19 | index 1b23a0c..b08bc74 100644 | ||
7 | --- a/src/sdiff.c | 20 | --- a/src/sdiff.c |
8 | +++ b/src/sdiff.c | 21 | +++ b/src/sdiff.c |
9 | @@ -805,7 +805,9 @@ | 22 | @@ -805,7 +805,7 @@ checksigs (void) |
10 | 23 | ||
11 | /* Yield an exit status indicating that a signal was received. */ | 24 | /* Yield an exit status indicating that a signal was received. */ |
12 | untrapsig (s); | 25 | untrapsig (s); |
13 | +#if HAVE_WORKING_FORK | 26 | - kill (getpid (), s); |
14 | kill (getpid (), s); | 27 | + raise (s); |
15 | +#endif | ||
16 | 28 | ||
17 | /* That didn't work, so exit with error status. */ | 29 | /* That didn't work, so exit with error status. */ |
18 | exit (EXIT_TROUBLE); | 30 | exit (EXIT_TROUBLE); |
31 | -- | ||
32 | cgit v1.0-41-gc330 | ||