shutdown_dgram.c (e007b89e9d311daec88a3c7ae38646bcd015c396) shutdown_dgram.c (b32d49cfbaa0437d08e65e7cd7c82c5951b1a852)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2024 Gleb Smirnoff <glebius@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 25 unchanged lines hidden (view full) ---

34#include <netinet/in.h>
35
36#include <atf-c.h>
37
38/*
39 * shutdown(2) on SOCK_DGRAM shall return ENOTCONN per POSIX. However, there
40 * is historical behavior of the shutdown(2) also unblocking any ongoing
41 * recv(2) syscall on the socket. It is known that some programs rely on this
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2024 Gleb Smirnoff <glebius@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 25 unchanged lines hidden (view full) ---

34#include <netinet/in.h>
35
36#include <atf-c.h>
37
38/*
39 * shutdown(2) on SOCK_DGRAM shall return ENOTCONN per POSIX. However, there
40 * is historical behavior of the shutdown(2) also unblocking any ongoing
41 * recv(2) syscall on the socket. It is known that some programs rely on this
42 * behavior, but exact list of problems isn't known. Neither we know if the
42 * behavior, but exact list of programs isn't known. Neither we know if the
43 * "feature" is required on PF_UNIX sockets or on PF_INET/INET6 sockets or
44 * on both kinds. Feel free to improve this comment if you know any details.
45 *
46 * List of relevant commits, bug reports and reviews:
47 * 63649db04205
48 * https://reviews.freebsd.org/D10351
49 * b114aa79596c (regresses)
50 * https://reviews.freebsd.org/D3039 (regresses)

--- 61 unchanged lines hidden ---
43 * "feature" is required on PF_UNIX sockets or on PF_INET/INET6 sockets or
44 * on both kinds. Feel free to improve this comment if you know any details.
45 *
46 * List of relevant commits, bug reports and reviews:
47 * 63649db04205
48 * https://reviews.freebsd.org/D10351
49 * b114aa79596c (regresses)
50 * https://reviews.freebsd.org/D3039 (regresses)

--- 61 unchanged lines hidden ---