aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rc.d/init.d/functions9
1 files changed, 7 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index b3d03fd6..b89060be 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -139,8 +139,13 @@ __kill_pids_term_kill() {
local try=0
local delay=3;
local pid=
- local stat=($(< /proc/self/stat))
- local base_stime=${stat[21]}
+ local stat=
+ local base_stime=
+
+ # We can't initialize stat & base_stime on the same line where 'local'
+ # keyword is, otherwise the sourcing of this file will fail for ksh...
+ stat=($(< /proc/self/stat))
+ base_stime=${stat[21]}
if [ "$1" = "-d" ]; then
delay=$2