search for: test_seqpacket_msg_peek_serv

Displaying 1 result from an estimated 1 matches for "test_seqpacket_msg_peek_serv".

2023 Aug 31
0
[RFC PATCH v2 2/2] test/vsock: shutdowned socket test
...+++ b/tools/testing/vsock/vsock_test.c >@@ -19,6 +19,7 @@ > #include <time.h> > #include <sys/mman.h> > #include <poll.h> >+#include <signal.h> > > #include "timeout.h" > #include "control.h" >@@ -1170,6 +1171,133 @@ static void test_seqpacket_msg_peek_server(const struct test_opts *opts) > return test_msg_peek_server(opts, true); > } > >+static sig_atomic_t have_sigpipe; >+ >+static void sigpipe(int signo) >+{ >+ have_sigpipe = 1; >+} >+ >+static void test_stream_check_sigpipe(int fd) >+{ >+ ssize_t res; >+...