diff --git a/lib/file_system/backends/fs_inotify.ex b/lib/file_system/backends/fs_inotify.ex index f18e6e222e8464bf04051dd502bf7bc66f3c9007..f4f84e6273c050ed3fbd40d3a24f8205c1ef78f4 100644 --- a/lib/file_system/backends/fs_inotify.ex +++ b/lib/file_system/backends/fs_inotify.ex @@ -106,7 +106,7 @@ defmodule FileSystem.Backends.FSInotify do {worker_pid, rest} = Keyword.pop(args, :worker_pid) case parse_options(rest) do {:ok, port_args} -> - bash_args = ['-c', '#{executable_path()} $0 $@ & PID=$!; read a; kill $PID'] + bash_args = ['-c', '#{executable_path()} $0 $@ & PID=$!; read a; kill -KILL $PID'] port = Port.open( {:spawn_executable, '/bin/sh'}, [:stream, :exit_status, {:line, 16384}, {:args, bash_args ++ port_args}, {:cd, System.tmp_dir!()}]