🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6301

Re: Small bug in signal-handling

#6301
From: Alan Lehotsky
Date: Tue, 12 Dec 1995 00:00
38 lines
1920 bytes
In article <199512111930.LAA10840@netshop.net>,  <ldeutsch@netshop.net> wrote:
>In gcc 2.7.0, running on Linux 1.2.13:
>
>When gcc is killed (with ctrl-c), the SIGCHLD is sent to the "init" program 
>instead of to the shell.
>
>This is minor - I only noticed it because I am presently developing 
>an "init" program - but it's still a bug.
>
>I did try ctrl-c-ing some other programs and the problem did not 
>occur, so it is unlikely that my shell (bash 1.14.5) is responsible. 
>
>---- Michael Deutschmann <ldeutsch@netshop.net>


	Since there's really no reason for GCC to hang-around waiting
	for its children to terminate, it exits on the ^C.  Thus, its
	still running children (who might be in i/o wait and thus
	uninterruptable), are orphaned.  Orphans are made "wards of
	the state" (e.g.) init becomes their parent, so init gets the SIGCHLD....

	Hey, it's not a bug, it's a feature!!!!

-- Al Lehotsky
==========================================================================
			Quality Software Management
     lehotsky@tiac.net    Voice: (617)862-5418     Fax: (617)674-1096
		    http://www.tiac.net/users/lehotsky

		Compiler Design and Language Implementation
	   Software Process Improvement and Management Consulting


--
==========================================================================
			Quality Software Management
     lehotsky@tiac.net    Voice: (617)862-5418     Fax: (617)674-1096
		    http://www.tiac.net/users/lehotsky
Technical Details
Message-ID: <4ait3k$9eb@sundog.tiac.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <199512111930.LAA10840@netshop.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,c7fa0d27fb214662
X-Google-Attributes: gid113d02,public
From: lehotsky@tiac.net (Alan Lehotsky)
Subject: Re: Small bug in signal-handling
Date: 1995/12/12
Message-ID: <4ait3k$9eb@sundog.tiac.net>
X-Deja-AN: 121609980
distribution: gnu
references: <199512111930.LAA10840@netshop.net>
organization: The Internet Access Company
newsgroups: gnu.gcc.bug