mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-13 13:29:58 -05:00
use pa_fopen_cloexec() where applicable
This commit is contained in:
parent
88b72958be
commit
168be3830a
14 changed files with 27 additions and 27 deletions
|
|
@ -143,7 +143,7 @@ static int proc_name_ours(pid_t pid, const char *procname) {
|
|||
|
||||
pa_snprintf(bn, sizeof(bn), "/proc/%lu/stat", (unsigned long) pid);
|
||||
|
||||
if (!(f = fopen(bn, "r"))) {
|
||||
if (!(f = pa_fopen_cloexec(bn, "r"))) {
|
||||
pa_log_info("Failed to open %s: %s", bn, pa_cstrerror(errno));
|
||||
return -1;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue