Skip to content

Commit

Permalink
Fix "pflock" helper program
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Feb 1, 2020
1 parent 28b1153 commit dd2b04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pflock
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ name=$( basename $program )
shift
command="${program} $@"
echoerr "pflock is running command: ${command}"
flock -xn "/var/lock/program-${name}.pflock" -c "${command}" || echo "Command not invoked or invocation failed"
flock -xn "/var/lock/program-${name}.pflock" -c "${command}" || echoerr "Command not invoked or invocation failed"; exit 2

0 comments on commit dd2b04d

Please sign in to comment.