-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Setting ulimit inside PowerShell #847
Copy link
Copy link
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-DevEx-Portabilityauthoring cross-platform or cross-architecture modules, cmdlets, and scriptsauthoring cross-platform or cross-architecture modules, cmdlets, and scripts
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-DevEx-Portabilityauthoring cross-platform or cross-architecture modules, cmdlets, and scriptsauthoring cross-platform or cross-architecture modules, cmdlets, and scripts
While setting up the OS X build, I encountered a funny issue. Running
ulimit -n 4096inside PowerShell had no effect, so I had to run it before launching the PowerShell process. Now,ulimitis 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 tosetrlimitonly affected the launched child process, not PowerShell itself.I think the appropriate fix would be to add a built-in
ulimitfunction to PowerShell that calledsetrlimitin-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.