summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-02-28 19:26:43 -0500
committerJune McEnroe <programble@gmail.com>2018-02-28 19:26:43 -0500
commita000fbbbd44013a8da52811e407bf80da4595f58 (patch)
tree4042ceef50fecf238ff2a1f3de212ed6d10f0750
parentClean up pngo (diff)
downloadsrc-a000fbbbd44013a8da52811e407bf80da4595f58.tar.gz
src-a000fbbbd44013a8da52811e407bf80da4595f58.zip
Open watch files O_CLOEXEC
Thankfully kqueue is CLOEXEC by default it seems.
Diffstat (limited to '')
-rw-r--r--bin/watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/watch.c b/bin/watch.c
index 5b13b7e3..ed499652 100644
--- a/bin/watch.c
+++ b/bin/watch.c
@@ -25,7 +25,7 @@
 #include <unistd.h>
 
 static void watch(int kq, char *path) {
-    int fd = open(path, O_RDONLY);
+    int fd = open(path, O_CLOEXEC);
     if (fd < 0) err(EX_NOINPUT, "%s", path);
 
     struct kevent event = {
:07:30 +0200'>2014-06-28git: update to 2.0.1Christian Hesse 2014-06-28ui-patch: Flush stdout after outputting dataJohn Keeping 2014-06-28ui-log: ignore unhandled argumentsJohn Keeping 2014-06-28git: update for git 2.0Christian Hesse 2014-04-17remove trailing whitespaces from source filesChristian Hesse 2014-04-12git: update to 1.9.2Christian Hesse 2014-04-05Fix cgit_parse_url when a repo url is contained in another repo urlJulian Maurice 2014-03-20Makefile: use more reliable git tarball mirrorJason A. Donenfeld 2014-03-20git: update to 1.9.1Christian Hesse