Skip to content

Commit

Permalink
Fixed SIGPIPE error under windows
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kramer <Christian.Kramer@roche.com>
  • Loading branch information
Christian Kramer authored and Christian Kramer committed Oct 16, 2017
1 parent 3416958 commit ca3ce21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mmpdb
Expand Up @@ -2,8 +2,9 @@

from mmpdblib import commandline
import signal
import os

if __name__ == "__main__":
signal.signal(signal.SIGINT, signal.SIG_DFL) # Allow ^C to kill the process.
signal.signal(signal.SIGPIPE, signal.SIG_DFL) # Allow the output pipe to be closed
if not os.name=="nt": signal.signal(signal.SIGPIPE, signal.SIG_DFL) # Allow the output pipe to be closed
commandline.main()
Empty file modified tests/space.smi.gz 100755 → 100644
Empty file.
Empty file modified tests/test_data.mmpdb 100755 → 100644
Empty file.

0 comments on commit ca3ce21

Please sign in to comment.