Changeset 13826
- Timestamp:
- 10/24/12 15:58:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/os/issmssh.py
r13170 r13826 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 TracChangeset
for help on using the changeset viewer.