Rebuilt targets
This commit is contained in:
parent
c2b24688ef
commit
1400390f57
|
@ -41,7 +41,7 @@ IS_STABLE=yes
|
||||||
|
|
||||||
|
|
||||||
_OFUNCTIONS_VERSION=2.1.4-dev
|
_OFUNCTIONS_VERSION=2.1.4-dev
|
||||||
_OFUNCTIONS_BUILD=2017052802
|
_OFUNCTIONS_BUILD=2017052803
|
||||||
_OFUNCTIONS_BOOTSTRAP=true
|
_OFUNCTIONS_BOOTSTRAP=true
|
||||||
|
|
||||||
## BEGIN Generic bash functions written in 2013-2017 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic bash functions written in 2013-2017 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
||||||
|
@ -352,6 +352,7 @@ function KillChilds {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if kill -0 "$pid" > /dev/null 2>&1; then
|
||||||
# Warning: pgrep does not exist in cygwin, have this checked in CheckEnvironment
|
# Warning: pgrep does not exist in cygwin, have this checked in CheckEnvironment
|
||||||
if children="$(pgrep -P "$pid")"; then
|
if children="$(pgrep -P "$pid")"; then
|
||||||
if [[ "$pid" == *"$children"* ]]; then
|
if [[ "$pid" == *"$children"* ]]; then
|
||||||
|
@ -366,7 +367,6 @@ function KillChilds {
|
||||||
|
|
||||||
# Try to kill nicely, if not, wait 15 seconds to let Trap actions happen before killing
|
# Try to kill nicely, if not, wait 15 seconds to let Trap actions happen before killing
|
||||||
if [ "$self" == true ]; then
|
if [ "$self" == true ]; then
|
||||||
if kill -0 "$pid" > /dev/null 2>&1; then
|
|
||||||
kill -s TERM "$pid"
|
kill -s TERM "$pid"
|
||||||
Logger "Sent SIGTERM to process [$pid]." "DEBUG"
|
Logger "Sent SIGTERM to process [$pid]." "DEBUG"
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
|
|
4
osync.sh
4
osync.sh
|
@ -10,7 +10,7 @@ IS_STABLE=yes
|
||||||
|
|
||||||
|
|
||||||
_OFUNCTIONS_VERSION=2.1.4-dev
|
_OFUNCTIONS_VERSION=2.1.4-dev
|
||||||
_OFUNCTIONS_BUILD=2017052802
|
_OFUNCTIONS_BUILD=2017052803
|
||||||
_OFUNCTIONS_BOOTSTRAP=true
|
_OFUNCTIONS_BOOTSTRAP=true
|
||||||
|
|
||||||
## BEGIN Generic bash functions written in 2013-2017 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
## BEGIN Generic bash functions written in 2013-2017 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr
|
||||||
|
@ -306,6 +306,7 @@ function KillChilds {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if kill -0 "$pid" > /dev/null 2>&1; then
|
||||||
# Warning: pgrep does not exist in cygwin, have this checked in CheckEnvironment
|
# Warning: pgrep does not exist in cygwin, have this checked in CheckEnvironment
|
||||||
if children="$(pgrep -P "$pid")"; then
|
if children="$(pgrep -P "$pid")"; then
|
||||||
if [[ "$pid" == *"$children"* ]]; then
|
if [[ "$pid" == *"$children"* ]]; then
|
||||||
|
@ -319,7 +320,6 @@ function KillChilds {
|
||||||
|
|
||||||
# Try to kill nicely, if not, wait 15 seconds to let Trap actions happen before killing
|
# Try to kill nicely, if not, wait 15 seconds to let Trap actions happen before killing
|
||||||
if [ "$self" == true ]; then
|
if [ "$self" == true ]; then
|
||||||
if kill -0 "$pid" > /dev/null 2>&1; then
|
|
||||||
kill -s TERM "$pid"
|
kill -s TERM "$pid"
|
||||||
Logger "Sent SIGTERM to process [$pid]." "DEBUG"
|
Logger "Sent SIGTERM to process [$pid]." "DEBUG"
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue