diff options
Diffstat (limited to 'gnulib/import/getprogname.c')
-rw-r--r-- | gnulib/import/getprogname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnulib/import/getprogname.c b/gnulib/import/getprogname.c index 9f69f5a..b9667ff 100644 --- a/gnulib/import/getprogname.c +++ b/gnulib/import/getprogname.c @@ -223,7 +223,7 @@ getprogname (void) int fd; sprintf (filename, "/proc/pinfo/%d", (int) getpid ()); - fd = open (filename, O_RDONLY); + fd = open (filename, O_RDONLY | O_CLOEXEC); if (0 <= fd) { prpsinfo_t buf; |