apply patch resolving a sigpipe issue reported with transmission [release 8.9.1-2mamba;Mon Aug 05 2024]
This commit is contained in:
parent
ac24a14eaf
commit
0279a3e734
26
curl-8.9.1-sigpipe.patch
Normal file
26
curl-8.9.1-sigpipe.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970
|
||||||
|
From: Daniel Stenberg <daniel@haxx.se>
|
||||||
|
Date: Mon, 5 Aug 2024 00:17:17 +0200
|
||||||
|
Subject: [PATCH] sigpipe: init the struct so that first apply ignores
|
||||||
|
|
||||||
|
Initializes 'no_signal' to TRUE, so that a call to sigpipe_apply() after
|
||||||
|
init ignores the signal (unless CURLOPT_NOSIGNAL) is set.
|
||||||
|
|
||||||
|
I have read the existing code multiple times now and I think it gets the
|
||||||
|
initial state reversed this missing to ignore.
|
||||||
|
|
||||||
|
Regression from 17e6f06ea37136c36d27
|
||||||
|
|
||||||
|
Reported-by: Rasmus Thomsen
|
||||||
|
Fixes #14344
|
||||||
|
Closes #14390
|
||||||
|
--- a/lib/sigpipe.h
|
||||||
|
+++ b/lib/sigpipe.h
|
||||||
|
@@ -39,6 +39,7 @@ struct sigpipe_ignore {
|
||||||
|
static void sigpipe_init(struct sigpipe_ignore *ig)
|
||||||
|
{
|
||||||
|
memset(ig, 0, sizeof(*ig));
|
||||||
|
+ ig->no_signal = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: curl
|
Name: curl
|
||||||
Version: 8.9.1
|
Version: 8.9.1
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A tool for transfering data with URL syntax that supports many protocols
|
Summary: A tool for transfering data with URL syntax that supports many protocols
|
||||||
Group: Applications/Networking
|
Group: Applications/Networking
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -10,6 +10,7 @@ Distribution: openmamba
|
|||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://curl.se/
|
URL: https://curl.se/
|
||||||
Source: http://curl.haxx.se/download/curl-%{version}.tar.bz2
|
Source: http://curl.haxx.se/download/curl-%{version}.tar.bz2
|
||||||
|
Patch0: curl-8.9.1-sigpipe.patch
|
||||||
License: MIT
|
License: MIT
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -91,6 +92,7 @@ This package contains static libraries and header files needed for development.
|
|||||||
%setup -q
|
%setup -q
|
||||||
#-D -T
|
#-D -T
|
||||||
#:<< _EOF
|
#:<< _EOF
|
||||||
|
%patch 0 -p1 -b .sigpipe
|
||||||
|
|
||||||
mkdir gnutls
|
mkdir gnutls
|
||||||
cd gnutls
|
cd gnutls
|
||||||
@ -216,6 +218,9 @@ cd gnutls/lib/
|
|||||||
%doc CHANGES README RELEASE-NOTES
|
%doc CHANGES README RELEASE-NOTES
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 8.9.1-2mamba
|
||||||
|
- apply patch resolving a sigpipe issue reported with transmission
|
||||||
|
|
||||||
* Wed Jul 31 2024 Automatic Build System <autodist@openmamba.org> 8.9.1-1mamba
|
* Wed Jul 31 2024 Automatic Build System <autodist@openmamba.org> 8.9.1-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user