From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by sourceware.org (Postfix) with ESMTPS id 447BF3858402 for ; Mon, 4 Oct 2021 21:56:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 447BF3858402 Received: from Express5800-S70 (z221123.dynamic.ppp.asahi-net.or.jp [110.4.221.123]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 194LteDY007200 for ; Tue, 5 Oct 2021 06:55:40 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 194LteDY007200 X-Nifty-SrcIP: [110.4.221.123] Date: Tue, 5 Oct 2021 06:55:48 +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: <20211005065548.2c02fff49d281a3166656e1d@nifty.ne.jp> In-Reply-To: <1844552584.20211004225155@yandex.ru> References: <0f3a01d7b873$3fa7f280$bef7d780$@pdinc.us> <20211004045817.a9973070199874e420909fcd@nifty.ne.jp> <581b2204-da47-b104-4735-20b35af13f9b@SystematicSw.ab.ca> <1844552584.20211004225155@yandex.ru> 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: Mon, 04 Oct 2021 21:56:19 -0000 On Mon, 4 Oct 2021 22:51:55 +0300 Andrey Repin wrote: > Greetings, Brian Inglis! > > > On 2021-10-03 13:58, Takashi Yano via Cygwin wrote: > >> 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 > > > Why would you want and how could you use 128 local terminal windows on > > one system, where could you put them, and be able to read them, unless > > you are building some kind of control centre, and then wouldn't GUI > > processes forked under a windows system be more useful? > > Won't SSH sessions allocate pty's ? Incoming SSH session consumes pty. Therefore, up to 128 users (or sessions) can login to the cygwin SSH server simultaneously. This is much less than modern Linux (e.g. 4096 on debian). -- Takashi Yano