delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/09/21:49:10

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 9 Mar 2009 22:48:50 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: minTTY will not interrupt 'locked' process
Message-ID: <20090310024849.GA17042@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <49B58491 DOT 5080101 AT columbus DOT rr DOT com> <416096c60903091432w1c4b2d2fjc1cf23896fd8ef9d AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <416096c60903091432w1c4b2d2fjc1cf23896fd8ef9d@mail.gmail.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
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 Mon, Mar 09, 2009 at 09:32:36PM +0000, Andy Koppe wrote:
>> Several times recently, I have executed a command on a "file" that was
>> apparently "locked". ?Any attempts to perform any reads/opens on the file
>> would block. ?When it happens, the only was out is to terminate minTTY
>> session (no ctl-C or ctl-\ will terminate). ?Is this a normal situation?
>
>I'm afraid I don't know about those locked files, but in any case this
>sounds more like a general Cygwin question. When you press Ctrl-C or
>Ctrl-\, MinTTY simply writes the corresponding control character to
>the pty device connecting it to its child process. The terminal driver
>normally turns that into a SIGINT or SIGQUIT, but applications can
>override that, or choose to ignore signals. Also, Cygwin can't deliver
>signals while a program is executing a Win32 function.

Right.  If a process is blocked in a situation where Cygwin isn't
expecting it, like when reading a disk file, then signals won't have
much effect.  This is actually more than a little like what happens
Linux when you try to access a file on, say, a bad disk.  Signals don't
allow you to stop the process there either.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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