forked from lix-project/lix
Silence kill output
This commit is contained in:
parent
d2586188fe
commit
b0d65b3d11
|
@ -109,10 +109,10 @@ startDaemon() {
|
||||||
killDaemon() {
|
killDaemon() {
|
||||||
kill $pidDaemon
|
kill $pidDaemon
|
||||||
for i in {0..100}; do
|
for i in {0..100}; do
|
||||||
kill -0 $pidDaemon || break
|
kill -0 $pidDaemon 2> /dev/null || break
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
kill -9 $pidDaemon || true
|
kill -9 $pidDaemon 2> /dev/null || true
|
||||||
wait $pidDaemon || true
|
wait $pidDaemon || true
|
||||||
trap "" EXIT
|
trap "" EXIT
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue