Message367162
> We've moved illumos-gate wsdiff python tool from Python 2 to Python 3.
I guess that you're talking about https://github.com/illumos/illumos-gate/blob/master/usr/src/tools/scripts/wsdiff.py
This project is part of illumos: "An open-source Unix operating system". It's a fork of Solaris.
Python does not officially support Solaris not Illumos. If someone provides a patch, we can review it. But I'm not aware of anyone working actively on supporting Illumos.
In the meanwhile, there are two workarounds:
* Use subprocess.Popen(close_fds=False): it should be safe since PEP 446 has been implemented in Python 3.4... except for C extension modules and C libraries which don't implement it.
* Reduce the maximum number of file descriptors.
On Linux and FreeBSD (if fdescfs kernel module is loaded and mounted), Python 3 iterates on /proc/self/fd/. On FreeBSD, the closefrom() syscall can be used: PR 19697. But I'm not aware of any more efficient solution for Illumos.
Since the latest comment of the original poster was last August, I close the issue. |
|
Date |
User |
Action |
Args |
2020-04-24 00:28:51 | vstinner | set | recipients:
+ vstinner, pitrou, movement, Alexander.Pyhalov, josh.r, nickhendo |
2020-04-24 00:28:51 | vstinner | set | messageid: <1587688131.57.0.424546318874.issue37790@roundup.psfhosted.org> |
2020-04-24 00:28:51 | vstinner | link | issue37790 messages |
2020-04-24 00:28:50 | vstinner | create | |
|