source:
issm/oecreview/Archive/13393-13976/ISSM-13825-13826.diff@
14312
Last change on this file since 14312 was 13980, checked in by , 12 years ago | |
---|---|
File size: 683 bytes |
-
../trunk-jpl/src/m/os/issmssh.py
39 39 else: 40 40 subprocess.call('ssh -l %s %s "%s"' % (login,host,command),shell=True) 41 41 42 # Make FreeBSD use blocking I/O like other platforms 43 import sys 44 import fcntl 45 from os import O_NONBLOCK 46 47 fd = sys.stdin.fileno() 48 flags = fcntl.fcntl(fd, fcntl.F_GETFL) 49 fcntl.fcntl(fd, fcntl.F_SETFL, flags & ~O_NONBLOCK) 50 51 fd = sys.stdout.fileno() 52 flags = fcntl.fcntl(fd, fcntl.F_GETFL) 53 fcntl.fcntl(fd, fcntl.F_SETFL, flags & ~O_NONBLOCK) 54
Note:
See TracBrowser
for help on using the repository browser.