X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_RX,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 18 Dec 2010 04:31:33 +0000 Message-ID: Subject: Re: Maximum ptys From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 18 December 2010 02:58, Rob B wrote: > I seem to be hitting my maximum pty limit after running my cygwin > machine for about a week. =C2=A0I open rxvt terminals and have an openssh > server. =C2=A0rxvt on the machine and connections via ssh work fine after > reboot. =C2=A0After about 1 week goes by I get messages about failure to > allocate a pty. > > Once this happens, I can't open an rxvt at the machine anymore (get > error message: can't open pseudo-tty), or ssh in (get error message: > PTY allocation request failed on channel 0). > > If I shut down an existing rxvt window on my machine, I can create one > more rxvt (or connect via ssh one more time), but then I hit the limit > again (get the failure messages) when I try to open another one. =C2=A0I > don't have many windows open, but I think ptys may not be getting > freed when ssh connections shut down in a not so nice way. > > In cygwin, how do I determine how many ptys are in use? > How do I determine which processes are using a pty? The TTY column in the output of 'ps' shows that. > I found the following link with Google, but the procedure does not > work for cygwin: > > http://www.cyberciti.biz/tips/howto-linux-increase-pty-session.html The limit is hard-coded to 128 tty devices in Cygwin, which means there can be up to 64 pty master/slave pairs. You'd have to rebuild the Cygwin DLL to change it. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple