make rebuild

This commit is contained in:
Rmys
2023-02-09 14:46:14 +03:00
parent 4cbfdf9ce5
commit 7be93d8db8
2 changed files with 41 additions and 2 deletions
@@ -0,0 +1,33 @@
From 92ab2e642d2c04b3dcb5a736ae6193680bfd5f74 Mon Sep 17 00:00:00 2001
From: Paul Smith <psmith@gnu.org>
Date: Sun, 6 Nov 2022 15:22:02 -0500
Subject: * src/main.c (main): [SV 63307] Handle SIGPIPE as a fatal signal
Always ignoring SIGPIPE is visible to child processes.
diff --git a/src/main.c b/src/main.c
index eec93656..f2caf7a8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1182,11 +1182,6 @@ main (int argc, char **argv, char **envp)
/* Useful for attaching debuggers, etc. */
SPIN ("main-entry");
- /* Don't die if our stdout sends us SIGPIPE. */
-#ifdef SIGPIPE
- bsd_signal (SIGPIPE, SIG_IGN);
-#endif
-
#ifdef HAVE_ATEXIT
if (ANY_SET (check_io_state (), IO_STDOUT_OK))
atexit (close_stdout);
@@ -1264,6 +1259,9 @@ main (int argc, char **argv, char **envp)
#endif
#ifdef SIGQUIT
FATAL_SIG (SIGQUIT);
+#endif
+#ifdef SIGPIPE
+ FATAL_SIG (SIGPIPE);
#endif
FATAL_SIG (SIGINT);
FATAL_SIG (SIGTERM);
+8 -2
View File
@@ -22,8 +22,7 @@
<!-- <Dependency>guile-devel</Dependency> -->
</BuildDependencies>
<Patches>
<!-- <Patch>glibc_2_27.patch</Patch> -->
<!-- <Patch>guile-2.2.patch</Patch> -->
<Patch>make-4.4-sigpipe.patch</Patch>
</Patches>
</Source>
@@ -43,6 +42,13 @@
</Package>
<History>
<Update release="8">
<Date>2023-02-09</Date>
<Version>4.4</Version>
<Comment>Rebuild.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="7">
<Date>2023-01-28</Date>
<Version>4.4</Version>