Skip to content

Commit

Permalink
Merge pull request #205 from dwcoates/RW/windows-compat-no-sigpipe
Browse files Browse the repository at this point in the history
Windows does not have SIGPIPE
  • Loading branch information
rolandwalker committed May 31, 2022
2 parents eb1da7e 7871576 commit 9a56e70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pygn_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 211,10 @@ def generate_argparser():
###

if __name__ == '__main__':
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
try:
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
except:
pass

if len(sys.argv) > 1 and (sys.argv[1] == '-version' or sys.argv[1] == '--version'):
print(__version__)
Expand Down

0 comments on commit 9a56e70

Please sign in to comment.