1
0
mirror of https://github.com/deajan/obackup.git synced 2024-12-26 07:23:41 +01:00

Rebuilt Targets

This commit is contained in:
deajan 2016-08-16 22:54:52 +02:00
parent 18f318d138
commit 49748686b9
2 changed files with 6 additions and 6 deletions

View File

@ -32,8 +32,7 @@ _DRYRUN=0
_SILENT=0 _SILENT=0
_LOGGER_PREFIX="date" _LOGGER_PREFIX="date"
_LOGGER_STDERR=0 _LOGGER_STDERR=0
if [ "$KEEP_LOGGING" == "" ]; then
if [ $(isNumeric "$KEEP_LOGGING") -ne 1 ]; then
KEEP_LOGGING=1801 KEEP_LOGGING=1801
fi fi
@ -215,6 +214,7 @@ function KillChilds {
function KillAllChilds { function KillAllChilds {
local pids="${1}" # List of parent pids to kill separated by semi-colon local pids="${1}" # List of parent pids to kill separated by semi-colon
local self="${2:-false}" # Should parent be killed too ?
__CheckArguments 1 $# ${FUNCNAME[0]} "$@" #__WITH_PARANOIA_DEBUG __CheckArguments 1 $# ${FUNCNAME[0]} "$@" #__WITH_PARANOIA_DEBUG
@ -222,7 +222,7 @@ function KillAllChilds {
IFS=';' read -a pidsArray <<< "$pids" IFS=';' read -a pidsArray <<< "$pids"
for pid in "${pidsArray[@]}"; do for pid in "${pidsArray[@]}"; do
KillChilds $pid KillChilds $pid $self
if [ $? != 0 ]; then if [ $? != 0 ]; then
errorcount=$((errorcount+1)) errorcount=$((errorcount+1))
fi fi

View File

@ -32,8 +32,7 @@ _DRYRUN=0
_SILENT=0 _SILENT=0
_LOGGER_PREFIX="date" _LOGGER_PREFIX="date"
_LOGGER_STDERR=0 _LOGGER_STDERR=0
if [ "$KEEP_LOGGING" == "" ]; then
if [ $(isNumeric "$KEEP_LOGGING") -ne 1 ]; then
KEEP_LOGGING=1801 KEEP_LOGGING=1801
fi fi
@ -202,13 +201,14 @@ function KillChilds {
function KillAllChilds { function KillAllChilds {
local pids="${1}" # List of parent pids to kill separated by semi-colon local pids="${1}" # List of parent pids to kill separated by semi-colon
local self="${2:-false}" # Should parent be killed too ?
local errorcount=0 local errorcount=0
IFS=';' read -a pidsArray <<< "$pids" IFS=';' read -a pidsArray <<< "$pids"
for pid in "${pidsArray[@]}"; do for pid in "${pidsArray[@]}"; do
KillChilds $pid KillChilds $pid $self
if [ $? != 0 ]; then if [ $? != 0 ]; then
errorcount=$((errorcount+1)) errorcount=$((errorcount+1))
fi fi