Use O_CLOEXEC in sysconf [BZ #26791]
authorMaximilian Krüger <max@maxfragg.de>
Wed, 11 Nov 2020 10:21:30 +0000 (11:21 +0100)
committerArjun Shankar <arjun@redhat.com>
Wed, 11 Nov 2020 11:15:21 +0000 (12:15 +0100)
commitd2d714b9fc02e4710d6dc769d8ec2c9dab0eb69a
treecc46d9f842a1cbec9e00a6bf1d911fc2f32ad448
parent30af7c7fa13e17d82c3f1f91536384715844f432
Use O_CLOEXEC in sysconf [BZ #26791]

If sysconf is used in multithreaded processes, various filedescriptors
may leak due to missing O_CLOEXEC.  This commit adds the flag.
sysdeps/unix/sysv/linux/sysconf.c