delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/28/11:18:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20020228072243.00aae918@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Thu, 28 Feb 2002 07:30:47 -0800
To: "Eugene Rosenzweig" <eugenius AT dingoblue DOT net DOT au>,
"Volker Quetschke" <quetschke AT scytek DOT de>, <cygwin AT cygwin DOT com>
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: Child died with signal 13
In-Reply-To: <0c4401c1becc$a7cadbe0$0300a8c0@bluebox>
References: <3C7B6591 DOT 9040503 AT scytek DOT de>
Mime-Version: 1.0

Eugene,

Signal numbers and errno codes (and process status codes) are distinct. 
Process status codes to incorporate the signal number when a signal caused 
the death of the process.

Signal 13 is SIGPIPE: Write to a pipe with no process there to read the 
data. In your context, this means the tar process has closed the pipe 
because it has concluded there is no more data to be retrieved from the 
gunzip sub-process it started in response to the 'z' option. If tar didn't 
do this, it would have to read all the gunzip-ed data. If it didn't either 
close the pipe (leading to the signal) or read the data, the child would 
just block and those processes would stall (at least until you or some 
other external action killed the tar + gunzip process group).

Signal 2 is SIGINT, the signal that results when you type a ^C.

Interactive shells suppress messages about certain signals causing process 
termination. In particular, SIGPIPE and SIGINT terminations are not 
reported as such by BASH. Tar is not making these exceptions.


Randall Schulz
Mountain View, CA USA


At 05:51 2002-02-26, Eugene Rosenzweig wrote:
>Hmm, it worked for me. I assume out of the documentation that tar will 
>spawn gzip -d filename and pipe it into itself. So, if 13 is the system 
>error from tar, which is EACCES, permission denied so maybe there is a 
>problem accessing the file? The listing shows that file is owned by 
>Administ(rator?) and prompt says Administrator so it seems correct but if 
>you substitute filename for nonexistent one then you get tar: Child died 
>with signal 2 <-- 2 being 'file not found' error so it seems that there is 
>a problem with permissions?
>
>Eugene.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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