]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tests/unix_seqpacket: test send(2) to a closed or aborted peer socket
authorGleb Smirnoff <glebius@FreeBSD.org>
Mon, 8 Apr 2024 20:16:50 +0000 (13:16 -0700)
committerGleb Smirnoff <glebius@FreeBSD.org>
Mon, 8 Apr 2024 20:16:50 +0000 (13:16 -0700)
commitf9927821240aae9083a56ea66c4725e7f0082461
treecf47f49db370657bc5d522debecd3f7ac3693e7f
parenteb338e2370b4644382e6404d7402bc05eef13e54
tests/unix_seqpacket: test send(2) to a closed or aborted peer socket

In both cases the kernel returns EPIPE and delivers SIGPIPE, unless
blocked or disabled.  The test isn't specific to SOCK_SEQPACKET, it is the
same for SOCK_STREAM.  Put the test into this file, since it has all
primitives to write this test tersely.

Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D44146
tests/sys/kern/unix_seqpacket_test.c