Message136447
$ cat test_sock.py
import socket
import fcntl
with socket.socket(socket.AF_INET, socket.SOCK_STREAM|socket.SOCK_CLOEXEC) as s:
print(bool(fcntl.fcntl(s, fcntl.F_GETFD) & fcntl.FD_CLOEXEC))
$ ./python test_sock.py
True |
|
Date |
User |
Action |
Args |
2011-05-21 14:50:28 | neologix | set | recipients:
+ neologix, gregory.p.smith, pitrou, nadeem.vawda, Christophe.Devriese |
2011-05-21 14:50:27 | neologix | set | messageid: <1305989427.99.0.785757675893.issue12107@psf.upfronthosting.co.za> |
2011-05-21 14:50:27 | neologix | link | issue12107 messages |
2011-05-21 14:50:27 | neologix | create | |
|