Skip to content
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

Closed
andyleejordan opened this issue Apr 14, 2016 · 7 comments
Closed

Setting ulimit inside PowerShell #847

andyleejordan opened this issue Apr 14, 2016 · 7 comments
Assignees
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-No Activity Issue has had no activity for 6 months or more WG-DevEx-Portability authoring cross-platform or cross-architecture modules, cmdlets, and scripts

Comments

@andyleejordan
Copy link
Member

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.

@andyleejordan andyleejordan modified the milestone: Future Jun 8, 2016
@joeyaiello joeyaiello added Issue-Enhancement the issue is more of a feature request than a bug WG-DevEx-Portability authoring cross-platform or cross-architecture modules, cmdlets, and scripts labels Sep 1, 2016
@andyleejordan
Copy link
Member Author

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.

@andyleejordan andyleejordan added the Hacktoberfest Potential candidate to participate in Hacktoberfest label Oct 7, 2016
@HemantMahawar HemantMahawar added the Up-for-Grabs Up-for-grabs issues are not high priorities, and may be opportunities for external contributors label Oct 17, 2016
@HemantMahawar HemantMahawar removed this from the post-6.0.0 milestone Oct 17, 2016
@SteveL-MSFT SteveL-MSFT removed the Hacktoberfest Potential candidate to participate in Hacktoberfest label Mar 5, 2017
@SteveL-MSFT SteveL-MSFT added this to the 6.1.0 milestone Mar 5, 2017
@SteveL-MSFT
Copy link
Member

Related #6725

@adityapatwardhan
Copy link
Member

adityapatwardhan commented Feb 25, 2021

The prototype is located at: https://github.com/PowerShell/UnixUtils

We need to release it to powershell gallery when time permits.

GitHub
GitHub is where people build software. More than 56 million people use GitHub to discover, fork, and contribute to over 100 million projects.

@SteveL-MSFT SteveL-MSFT removed the Up-for-Grabs Up-for-grabs issues are not high priorities, and may be opportunities for external contributors label Jun 17, 2021
Copy link
Contributor

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
Copy link
Contributor

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution-No Activity Issue has had no activity for 6 months or more label Nov 16, 2023
Copy link
Contributor

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.

Copy link
Contributor

This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-No Activity Issue has had no activity for 6 months or more WG-DevEx-Portability authoring cross-platform or cross-architecture modules, cmdlets, and scripts
Projects
None yet
Development

No branches or pull requests

6 participants