-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting ulimit inside PowerShell #847
Comments
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. |
Related #6725 |
The prototype is located at: https://github.com/PowerShell/UnixUtils We need to release it to powershell gallery when time permits.
|
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
1 similar comment
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes. |
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 tosetrlimit
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 calledsetrlimit
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.
The text was updated successfully, but these errors were encountered: