SIGPIPE pb is only for unix

This commit is contained in:
Yann Leboulanger 2005-10-05 11:05:51 +00:00
parent e5fb3d70ad
commit cd59e29778
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ import threading
import select
import socket
import signal
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
if os.name != 'nt':
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
from calendar import timegm