disown backgrounded jobs before exiting
This commit is contained in:
parent
8ada5bc4a6
commit
8fcd02bd48
1 changed files with 1 additions and 0 deletions
|
|
@ -154,6 +154,7 @@ sigterm_handler() {
|
||||||
for LJ_SITE in "${!LJ_FDS[@]}"; do
|
for LJ_SITE in "${!LJ_FDS[@]}"; do
|
||||||
{ exec {LJ_FDS[$LJ_SITE]}>&-; } 2>/dev/null
|
{ exec {LJ_FDS[$LJ_SITE]}>&-; } 2>/dev/null
|
||||||
done
|
done
|
||||||
|
disown -ah
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue