We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e617195 + 0da314a commit 3290a58Copy full SHA for 3290a58
1 file changed
client/deis.py
@@ -76,8 +76,9 @@
76
77
# Don't throw IOError when a pipe closes
78
# https://github.com/deis/deis/issues/3764
79
-from signal import signal, SIGPIPE, SIG_DFL
80
-signal(SIGPIPE, SIG_DFL)
+import signal
+if hasattr(signal, 'SIGPIPE') and hasattr(signal, 'SIG_DFL'):
81
+ signal.signal(signal.SIGPIPE, signal.SIG_DFL)
82
83
__version__ = '1.7.0-dev'
84
0 commit comments