1
0
mirror of https://github.com/deajan/obackup.git synced 2024-12-25 15:03: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
_LOGGER_PREFIX="date"
_LOGGER_STDERR=0
if [ $(isNumeric "$KEEP_LOGGING") -ne 1 ]; then
if [ "$KEEP_LOGGING" == "" ]; then
KEEP_LOGGING=1801
fi
@ -215,6 +214,7 @@ function KillChilds {
function KillAllChilds {
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
@ -222,7 +222,7 @@ function KillAllChilds {
IFS=';' read -a pidsArray <<< "$pids"
for pid in "${pidsArray[@]}"; do
KillChilds $pid
KillChilds $pid $self
if [ $? != 0 ]; then
errorcount=$((errorcount+1))
fi

View File

@ -32,8 +32,7 @@ _DRYRUN=0
_SILENT=0
_LOGGER_PREFIX="date"
_LOGGER_STDERR=0
if [ $(isNumeric "$KEEP_LOGGING") -ne 1 ]; then
if [ "$KEEP_LOGGING" == "" ]; then
KEEP_LOGGING=1801
fi
@ -202,13 +201,14 @@ function KillChilds {
function KillAllChilds {
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
IFS=';' read -a pidsArray <<< "$pids"
for pid in "${pidsArray[@]}"; do
KillChilds $pid
KillChilds $pid $self
if [ $? != 0 ]; then
errorcount=$((errorcount+1))
fi