You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While setting up the OS X build, I encountered a funny issue. Running ulimit -n 4096 inside PowerShell had no effect, so I had to run it before launching the PowerShell process. Now, ulimit is both a Bash built-in and a native command on OS X. My guess is that, when running from PowerShell, it was launched as a child process (of course) and so the system call to setrlimit only affected the launched child process, not PowerShell itself.
I think the appropriate fix would be to add a built-in ulimit function to PowerShell that called setrlimit in-proc, thus modifying the current process's open file descriptor limit.
This is a total edge case that we should take care of at some point, but I don't think it's super high priority.
This would be a great feature for Hacktoberfest. It's (probably) just a bit of Linux/OS X native code added to libpsl-native and a new PowerShell cmdlet that P/Invokes it.
Activity
andyleejordan commentedon Oct 7, 2016
This would be a great feature for Hacktoberfest. It's (probably) just a bit of Linux/OS X native code added to libpsl-native and a new PowerShell cmdlet that P/Invokes it.
SteveL-MSFT commentedon Apr 26, 2018
Related #6725
adityapatwardhan commentedon Feb 25, 2021
The prototype is located at: https://github.com/PowerShell/UnixUtils
We need to release it to powershell gallery when time permits.
kilasuit commentedon Sep 28, 2024
Did this ever get released Steve Lee (@SteveL-MSFT) / Aditya Patwardhan (@adityapatwardhan) ?