From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by sourceware.org (Postfix) with ESMTPS id 12E8D3858D39 for ; Sun, 3 Oct 2021 19:58:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 12E8D3858D39 Received: from Express5800-S70 (z221123.dynamic.ppp.asahi-net.or.jp [110.4.221.123]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 193JwBNg000683 for ; Mon, 4 Oct 2021 04:58:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 193JwBNg000683 X-Nifty-SrcIP: [110.4.221.123] Date: Mon, 4 Oct 2021 04:58:17 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: is there a limit on how many mintty terminals can be open at once? Message-Id: <20211004045817.a9973070199874e420909fcd@nifty.ne.jp> In-Reply-To: <0f3a01d7b873$3fa7f280$bef7d780$@pdinc.us> References: <0f3a01d7b873$3fa7f280$bef7d780$@pdinc.us> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2021 19:58:33 -0000 On Sun, 3 Oct 2021 12:25:15 -0400 "Jason Pyeron" wrote: > I got the "Error: Could not fork child process: There are no available terminals (-1)" error. > > Closing N minty terminals allowed me to open exactly N more. > > My google fu is poor, since I cannot seem to find relevant pages. > > What is the limit? In current cygwin, maximum number of pty is 128. It is hard coded and not configurable by user. https://cygwin.com/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/tty.h#l15 -- Takashi Yano