delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/29/00:47:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS,WEIRD_PORT
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 29 Sep 2009 16:46:42 +1200
Message-ID: <db95995b0909282146h39653926o95b74de1e9f32e30@mail.gmail.com>
Subject: Cygwin 1.7 & mintty error - cannot run mintty more than once at a time
From: David Antliff <david DOT antliff 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-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

I've been using Cygwin 1.7 alongside Cygwin 1.5 quite happily for the
last few hours, however all-of-a-sudden when I try and run mintty
(from cygstart or from a cmd.exe shell) I get a new window with this
error message:

Failed to create child process: No such file or directory

Hitting "enter" makes the window close.

I messed around with this for a while until I discovered something
very obvious - I already had a mintty running.

It appears that in Cygwin 1.7 I cannot run more than one instance of
mintty at a time.

In 1.5, I have happily run many, many instances simultaneously.

However I can run bash.exe without a problem, and in doing so I tried an strace:
...
  115  166255 [main] mintty 4336 tty_list::allocate: tty1 allocated
   91  166346 [main] mintty 4336 fhandler_pipe::create_selectable:
CreateNamedPipe: name \\.\pipe\cygwin-tty1-from-master, size 131072
  144  166490 [main] mintty 4336 fhandler_pipe::create_selectable:
pipe read handle 0x6C4
   82  166572 [main] mintty 4336 fhandler_pipe::create_selectable:
CreateFile: name \\.\pipe\cygwin-tty1-from-master
  103  166675 [main] mintty 4336 fhandler_pipe::create_selectable:
pipe write handle 0x6CC
   85  166760 [main] mintty 4336 fhandler_pipe::create_selectable:
CreateNamedPipe: name \\.\pipe\cygwin-tty1-to-master, size 131072
  242  167002 [main] mintty 4336 fhandler_pipe::create_selectable: pipe busy
   77  167079 [main] mintty 4336 seterrno_from_win_error:
/netrel/src/cygwin-1.7.0-61/winsup/cygwin/fhandler_tty.cc:1439 windows
error 231
   79  167158 [main] mintty 4336 geterrno_from_win_error: windows
error 231 == errno 16
   73  167231 [main] mintty 4336 __set_errno: void
seterrno_from_win_error(const char*, int, DWORD):319 val 16
   84  167315 [main] mintty 4336 fhandler_pty_master::setup:
tty1629019509 open failed - failed to create (null)
   89  167404 [main] mintty 4336 open: -1 = open (/dev/ptmx, 0x8002)
   83  167487 [main] mintty 4336 __set_errno: int openpty(int*, int*,
char*, termios*, winsize*):128 val 2

Looks like there's a "busy pipe" that is causing mintty to abort?

Is this a bug with mintty?

-- David.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019