Give the pid of the new process

This commit is contained in:
Jérémy Lecour 2020-04-21 09:03:18 +02:00 committed by Jérémy Lecour
parent 4829232a65
commit fa109e216b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ kill_or_clean_lockfile() {
kill -9 "${pid}"
# Only one bkctld-rm can run in parallel, the latest wins
lockfile_date=$(date --date "@$(stat -c %Y ${lock_file})" +"%Y-%m-%d %H:%M:%S")
warning "Process \`${pid}' has been killed (was running since ${lockfile_date})"
warning "Process \`${pid}' (started at ${lockfile_date}) has been killed by \`$$'"
else
warning "Process not found at PID \`${pid}'. Ignoring lock file \`${lock_file}'."
fi