mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-07-10 11:03:57 -04:00
treewide: make more file descriptors cloexec
Avoid file descriptor leakage into child processes by marking them `O_CLOEXEC`.
This commit is contained in:
parent
6ef23a1a9a
commit
e5b741732d
9 changed files with 9 additions and 9 deletions
|
|
@ -880,7 +880,7 @@ static int send_sap(struct impl *impl, struct session *sess, bool bye)
|
|||
|
||||
if ((str = pw_properties_get(sess->props, "source.ip")) == NULL) {
|
||||
if (impl->ifname) {
|
||||
int fd = socket(impl->sap_addr.ss_family, SOCK_DGRAM, 0);
|
||||
int fd = socket(impl->sap_addr.ss_family, SOCK_DGRAM | SOCK_CLOEXEC, 0);
|
||||
if (fd >= 0) {
|
||||
struct ifreq req;
|
||||
spa_zero(req);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue