aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'kbd.c')
-rw-r--r--kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbd.c b/kbd.c
index 4ed2540..1d74132 100644
--- a/kbd.c
+++ b/kbd.c
@@ -201,7 +201,7 @@ static int open_restricted(const char *path, int flags, void *user_data)
{
int fd;
- fd = open(path, flags);
+ fd = open(path, flags | O_CLOEXEC);
if (fd < 0) {
fprintf(stderr, "open %s: %s\n", path, strerror(errno));
return fd;