X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E578E3857014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1633384647; bh=x6hbFKEJ1Qisef0hvo9WFNR0WfQ87RwJOhpFKCldymI=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=nVjRHUEN4tm7L2sTHeM0WX9V2c4XmCdju4R6C0CsEQDmDUvRAZP2vnhOL0jhmXJAb IP6Qj2TTipqSa1Pp/ZCBKB9fYhOgt8EUPK4y+vWJXF0QZeS/21ewXx+uvqjsOxhYDc hCAby9pxXXMQweboVe7nxfXGjIY9w1yPuPLABRNM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 447BF3858402 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 To: cygwin AT cygwin DOT 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 DOT a9973070199874e420909fcd AT nifty DOT ne DOT jp> <581b2204-da47-b104-4735-20b35af13f9b AT SystematicSw DOT ab DOT ca> <1844552584 DOT 20211004225155 AT yandex DOT ru> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 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 AT cygwin DOT 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: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple