• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pseudo-device pty >32
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pseudo-device pty >32


  • Subject: Re: pseudo-device pty >32
  • From: Terry Lambert <email@hidden>
  • Date: Sun, 5 Nov 2006 13:40:34 -0800

On Nov 5, 2006, at 12:55 PM, Tim Baur wrote:
On Sun, 5 Nov 2006, Terry Lambert wrote:

Uh, trust the code:

	% ls /dev/pty* | wc -l
	128

128 > 32.

And technically, if you are willing to dig around a little bit for the information (exercise left up to the student), it's pretty trivial to get it up to 256 without hacking any source code.

there may be 128 /dev/pty there, but if you attempt to open more then 32 shell's, you'll find the limit of 32 and resulting fork/ resource errors.

That is a different problem. That has to do with number of processes allowed in a session by default, coupled with incorrrect resource limits settings.


In other words, it's an administrative pilot error that's at fault, and not a problem with the implementation.

To understand the resource limit inheritance model, you should look at the archives of this list, since I've posted about this twice in the past. Basically, it boils down to resource limits being inherited from your parent process, and Mac OS X's parent/child relationship not being what you are assuming it is, particularly for things launched via Launch Services.

Depending on what version of Mac OS X you are using, the answer on how to exceed these administrative limits varies; it's easier if you are at least running something modern enough that it had a launchd (this is covered in detail in the list archives).

-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: pseudo-device pty >32
      • From: Tim Baur <email@hidden>
References: 
 >pseudo-device pty >32 (From: Tim Baur <email@hidden>)
 >Re: pseudo-device pty >32 (From: Terry Lambert <email@hidden>)
 >Re: pseudo-device pty >32 (From: Tim Baur <email@hidden>)

  • Prev by Date: Re: TCP_KEEPALIVE
  • Next by Date: Re: TCP_KEEPALIVE
  • Previous by thread: Re: pseudo-device pty >32
  • Next by thread: Re: pseudo-device pty >32
  • Index(es):
    • Date
    • Thread