delorie.com/archives/browse.cgi | search |
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: | <AANLkTikH7qbxGERG=Hn8P805OzhN4C_S2r5kTtBMxs-8@mail.gmail.com> |
References: | <AANLkTikH7qbxGERG=Hn8P805OzhN4C_S2r5kTtBMxs-8 AT mail DOT gmail DOT com> |
Date: | Sat, 18 Dec 2010 04:31:33 +0000 |
Message-ID: | <AANLkTinpSQ+0dBFAGzOgyyP3iWwqX13g8Rf2y=Av1hND@mail.gmail.com> |
Subject: | Re: Maximum ptys |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |