@cryptotaxi247 / netdata-1 / commits / ecd55438c

prevent IOError on msg.fatal

paulfantom committed Aug 14, 2016 at 12:17 UTC ecd55438cdf2cef9881b36137ba73a7a54383eb9
1 file changed +3 -1
python.d/python_modules/msg.py
+3 -1
@@ -47,5 +47,7 @@ def fatal(*args):
47 Print message on stderr and exit.
48 """
49 log_msg("FATAL", *args)
50 - sys.stdout.write('DISABLE\n')
50 + # using sys.stdout causes IOError: Broken Pipe
51 + print('DISABLE')
52 + # sys.stdout.write('DISABLE\n')
53 sys.exit(1)
\ No newline at end of file