From a5469e5572f2fc494004d7ab1e39ae4260743301 Mon Sep 17 00:00:00 2001 From: James Ravn Date: Fri, 7 Apr 2017 11:36:31 +0100 Subject: [PATCH] Cast KILL*TIMEOUTS to int As int is required by signal.alarm. --- image/bin/my_init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image/bin/my_init b/image/bin/my_init index 354b362..8fabe6b 100755 --- a/image/bin/my_init +++ b/image/bin/my_init @@ -1,8 +1,8 @@ #!/usr/bin/python3 -u import os, os.path, sys, stat, signal, errno, argparse, time, json, re -KILL_PROCESS_TIMEOUT = os.environ.get('KILL_PROCESS_TIMEOUT', 5) -KILL_ALL_PROCESSES_TIMEOUT = os.environ.get('KILL_ALL_PROCESSES_TIMEOUT', 5) +KILL_PROCESS_TIMEOUT = int(os.environ.get('KILL_PROCESS_TIMEOUT', 5)) +KILL_ALL_PROCESSES_TIMEOUT = int(os.environ.get('KILL_ALL_PROCESSES_TIMEOUT', 5)) LOG_LEVEL_ERROR = 1 LOG_LEVEL_WARN = 1