Ignore SIGPIPE in s2n_self_talk_custom_io_test
This was failing on my OSX development system. By design it looks like
the test can attempt to read/write to a closed pipe.
#include <sys/poll.h>
#include <sys/wait.h>
#include <unistd.h>
+#include <signal.h>
#include <stdint.h>
#include <fcntl.h>
@@ -145,6 +146,11 @@ int main(int argc, char **argv)
EXPECT_SUCCESS(s2n_config_add_cert_chain_and_key(config, cert_chain_pem, private_key_pem));
EXPECT_SUCCESS(s2n_config_add_dhparams(config, dhparams_pem));
+ /* For convenience, this test will intentionally try to write to closed pipes during shutdown. Ignore the signal to
+ * avoid exiting the process on SIGPIPE.
+ */
+ signal(SIGPIPE, SIG_IGN);
+
/* Create a pipe */
EXPECT_SUCCESS(pipe(server_to_client));
EXPECT_SUCCESS(pipe(client_to_server));
