source:
issm/oecreview/Archive/13393-13976/ISSM-13825-13826.diff@
17986
| Last change on this file since 17986 was 13980, checked in by , 13 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.
![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)