gentoo-ebuilds/www-misc/fcgiwrap/files/fcgiwrap-1.1.0-kill.patch
Sam James e72c074236
www-misc/fcgiwrap: add 1.1.0_p20150419
* Take a snapshot given there's been no release since 2013
* Pull in some patches from pending PRs
* Switch systemd sed to a patch

Signed-off-by: Sam James <sam@gentoo.org>
2025-03-07 11:24:08 +00:00

25 lines
745 B
Diff

https://github.com/gnosek/fcgiwrap/pull/44
From dc0c3b14f0d7bb014a9a4c6c17eb55a123496365 Mon Sep 17 00:00:00 2001
From: "D.pz" <xpz91@126.me>
Date: Mon, 28 Aug 2017 23:54:08 +0800
Subject: [PATCH] 1.fix: kill() parameter sequence wrong
---
fcgiwrap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fcgiwrap.c b/fcgiwrap.c
index b44d8aa..bfd9a90 100644
--- a/fcgiwrap.c
+++ b/fcgiwrap.c
@@ -205,7 +205,7 @@ static void fcgi_finish(struct fcgi_context *fc, const char* msg)
if (fc->fd_stderr >= 0) close(fc->fd_stderr);
if (fc->cgi_pid)
- kill(SIGTERM, fc->cgi_pid);
+ kill(fc->cgi_pid, SIGTERM);
}
static const char * fcgi_pass_fd(struct fcgi_context *fc, int *fdp, FCGI_FILE *ffp, char *buf, size_t bufsize)