gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet-scheme] 205/324: tests/mq-stream: Unbreak SIGPIPE signal handler


From: gnunet
Subject: [gnunet-scheme] 205/324: tests/mq-stream: Unbreak SIGPIPE signal handler.
Date: Tue, 21 Sep 2021 13:24:05 +0200

This is an automated email from the git hooks/post-receive script.

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit e517bbd0a00dc716abf7f900e28ca7a1b422d996
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Tue Aug 31 12:51:48 2021 +0200

    tests/mq-stream: Unbreak SIGPIPE signal handler.
    
    Whether this new handler is necessary depends on the environment
    wherein the test suite was started.
    
    * tests/mq-stream.scm: ‘Ignore’ SIGPIPE (it's not really ignored
      because gnu/gnunet/mq-impl/stream.scm catches EPIPE).
---
 tests/mq-stream.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/mq-stream.scm b/tests/mq-stream.scm
index ff64e17..e7c6d3b 100644
--- a/tests/mq-stream.scm
+++ b/tests/mq-stream.scm
@@ -70,6 +70,11 @@
    (const #t)
    handle))
 
+;; Why isn't this the default?  This stops the process from
+;; exiting instead of raising an EPIPE system-error when
+;; writing to a broken pipe.
+(sigaction SIGPIPE SIG_IGN)
+
 (test-assert "messages + eof are injected in-order"
   (let^ ((! input/bv #vu8(0 4 0 1 ; Message type 1, size 4
                            0 5 0 2 1 ; Message type 2, size 6

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]