diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2013-08-28 21:10:37 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2013-08-28 21:10:37 +0000 |
commit | d1d4d95209e4ba5da75c16a5653bc46fca6418f8 (patch) | |
tree | 8dda6bdc0191b6bd5008300355e35de43cca06e6 /lib/libutil/pidfile.c | |
parent | 319a31ea182114972f917a244863cfdc56460ca9 (diff) | |
download | src-d1d4d95209e4ba5da75c16a5653bc46fca6418f8.tar.gz src-d1d4d95209e4ba5da75c16a5653bc46fca6418f8.zip |
libutil: Use O_CLOEXEC for internal file descriptors from open().
Notes
Notes:
svn path=/head/; revision=255007
Diffstat (limited to 'lib/libutil/pidfile.c')
-rw-r--r-- | lib/libutil/pidfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/pidfile.c b/lib/libutil/pidfile.c index 7949e9e9a034..3a5e5121c147 100644 --- a/lib/libutil/pidfile.c +++ b/lib/libutil/pidfile.c @@ -73,7 +73,7 @@ pidfile_read(const char *path, pid_t *pidptr) char buf[16], *endptr; int error, fd, i; - fd = open(path, O_RDONLY); + fd = open(path, O_RDONLY | O_CLOEXEC); if (fd == -1) return (errno); |