From 78838ed9309d22ab25b5293631c948cb9bb2fa54 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 28 Feb 2018 19:26:43 -0500 Subject: Open watch files O_CLOEXEC Thankfully kqueue is CLOEXEC by default it seems. --- bin/watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/watch.c b/bin/watch.c index a18d9b36..442835fa 100644 --- a/bin/watch.c +++ b/bin/watch.c @@ -25,7 +25,7 @@ #include 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 = { -- cgit 1.4.1 72558d92df1934a64533812d6db9e5e419dfb61c'>this commit dontfiles
summary refs log tree commit diff
Commit message (Collapse)Author
2013-11-10Effuse ignore vim-plug.shJune McEnroe
2013-11-10Remove useless dotvim ignoresJune McEnroe
2013-11-10Add GitHub username to gitconfigJune McEnroe
2013-11-09Remove instructions from READMEJune McEnroe
2013-11-09Fix NumberToggleJune McEnroe
2013-11-09Add Plugins commentJune McEnroe
2013-11-09Switch to vim-plugJune McEnroe
2013-11-09Add vim-easy-alignJune McEnroe
2013-11-09Remove unused plugin configurationsJune McEnroe
2013-11-03Update jellybeansJune McEnroe
2013-11-03Add bindings for CtrlPBufTag and CtrlPLineJune McEnroe
2013-11-03Update pluginsJune McEnroe
2013-11-03Remove unused pluginsJune McEnroe
2013-11-03Update jellybeansJune McEnroe
2013-11-03Switch to (customized) jellybeans colorschemeJune McEnroe
2013-11-03Disable Airline whitespace extensionJune McEnroe
2013-11-02Replace vim-gitgutter with vim-signifyJune McEnroe
2013-11-02Add tagbarJune McEnroe
2013-11-02Add AirlineJune McEnroe
2013-11-02Remove powerlineJune McEnroe
2013-11-02Rehash on reloadJune McEnroe
2013-11-02Remove git prompt from titleJune McEnroe
2013-11-02Update zsh syntax highlighting and configJune McEnroe
2013-10-31Fix host in prompt, part twoJune McEnroe
2013-10-31Fix host in promptJune McEnroe
2013-10-31Wow look reorganized zsh configJune McEnroe
2013-10-30Show hostname in prompt over SSHJune McEnroe
2013-10-30Only load chruby if it existsJune McEnroe
2013-10-27Add auto-title stuff to zshJune McEnroe
2013-10-26Add gvim alias to silence stderrJune McEnroe
2013-10-26Add home.programble.me functionJune McEnroe
2013-10-14Remove unused configsJune McEnroe
2013-10-14Add therefore, because, cards compose sequencesJune McEnroe
2013-10-14Global git ignore .swo filesJune McEnroe
2013-10-14Add Heroku to zshJune McEnroe
2013-09-23Add gst git stash aliasJune McEnroe
2013-09-06Disable some options in terminalsJune McEnroe
2013-09-05Only set colorscheme for gvimJune McEnroe
2013-09-05Remove pacman stuffJune McEnroe
Goodbye Arch.
2013-09-05Only alias hub if it existsJune McEnroe
2013-09-05chruby to ruby-2.0.0June McEnroe
2013-08-17Add vim-ragtagJune McEnroe
2013-08-14Add nvmJune McEnroe
2013-07-09Add title commandJune McEnroe
2013-06-09Use default client keysJune McEnroe
2013-06-09Run games in separate X serverJune McEnroe
2013-06-08Add game wrapper to kill/restart unclutterJune McEnroe
2013-06-08Update base16-vimJune McEnroe
2013-06-08Add git configJune McEnroe