summaryrefslogtreecommitdiff
path: root/bin/emacsclient
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-01-23 08:27:01 -0700
committerSean Whitton <spwhitton@spwhitton.name>2023-01-27 15:16:03 -0700
commit92371c1f10f518b032f92813110a00f6c41b79ef (patch)
tree671182da1a50c18206e48f10855034798847b894 /bin/emacsclient
parent27bfaa1f9ca6f1c097d0d38190f63d50e21bc801 (diff)
downloaddotfiles-92371c1f10f518b032f92813110a00f6c41b79ef.tar.gz
emacsclient wrapper: ensure sockets directory exists
Diffstat (limited to 'bin/emacsclient')
-rwxr-xr-xbin/emacsclient2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/emacsclient b/bin/emacsclient
index a8268fd0..cb371608 100755
--- a/bin/emacsclient
+++ b/bin/emacsclient
@@ -130,7 +130,7 @@ wait_inotifywait () {
}
spw_flock () {
- ( umask 077; mkdir -p "$locks_dir" )
+ ( umask 077; mkdir -p "$socket_dir" "$locks_dir" )
eval "exec $1<>${locks_dir}$2"
flock $([ -n "$timeout" ] && printf -- "--wait %s" "$timeout") "$1" \
|| fail "couldn't lock starting Emacs daemon named $2"