summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_power_state_change.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config/cc_power_state_change.py')
-rw-r--r--cloudinit/config/cc_power_state_change.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/config/cc_power_state_change.py b/cloudinit/config/cc_power_state_change.py
index 8efef24b..2797b3d9 100644
--- a/cloudinit/config/cc_power_state_change.py
+++ b/cloudinit/config/cc_power_state_change.py
@@ -22,6 +22,7 @@ from cloudinit import util
import errno
import os
import re
+import signal
import subprocess
import time
@@ -36,7 +37,7 @@ EXIT_FAIL = 254
def givecmdline(pid):
# Check if this pid still exists by sending it the harmless 0 signal.
try:
- os.kill(pid, 0)
+ os.kill(pid, signal.SIG_DFL)
except OSError:
return None
else: