From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-portage-dev+bounces-2350-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1Lx35m-0004qn-HD
	for garchives@archives.gentoo.org; Thu, 23 Apr 2009 17:52:10 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BE369E031A;
	Thu, 23 Apr 2009 17:52:09 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 966A1E031A
	for <gentoo-portage-dev@lists.gentoo.org>; Thu, 23 Apr 2009 17:52:09 +0000 (UTC)
Received: from [192.168.22.10] (ip68-4-152-120.oc.oc.cox.net [68.4.152.120])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTP id 2528965023
	for <gentoo-portage-dev@lists.gentoo.org>; Thu, 23 Apr 2009 17:52:09 +0000 (UTC)
Message-ID: <49F0AAD9.4060400@gentoo.org>
Date: Thu, 23 Apr 2009 10:52:25 -0700
From: Zac Medico <zmedico@gentoo.org>
User-Agent: Thunderbird 2.0.0.21 (X11/20090302)
Precedence: bulk
List-Post: <mailto:gentoo-portage-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-portage-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-portage-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-portage-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-portage-dev.gentoo.org>
X-BeenThere: gentoo-portage-dev@lists.gentoo.org
Reply-to: gentoo-portage-dev@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] Portage and SIGHUP
References: <20090423122341.GO15099@gentoo.org>
In-Reply-To: <20090423122341.GO15099@gentoo.org>
X-Enigmail-Version: 0.95.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 7c9b81fa-e729-48cb-bf57-b29d48efc9ab
X-Archives-Hash: ad62c5374d7b0fc6f3abba02da106bfb

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fabian Groffen wrote:
> I recently noticed this:
> 
> (pegasus:portage/dev-libs/poppler) fabian% emerge --resume
> Calculating dependencies... done!
> *** Resuming merge...
> 
>>>> Verifying ebuild manifests
> 
>>>> Starting parallel fetch
> 
>>>> Emerging (1 of 9) dev-libs/libgpg-error-1.7
>  * libgpg-error-1.7.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
>  * checking ebuild checksums ;-) ...                                     [ ok ]
>  * checking auxfile checksums ;-) ...                                    [ ok ]
>  * checking miscfile checksums ;-) ...                                   [ ok ]
>>>> Unpacking source...
>>>> Unpacking libgpg-error-1.7.tar.bz2 to /net/pegasus.ins.cwi.nl/export/scratch/stripe/fabian/gentoo/prefix64/var/tmp/portage/dev-libs/libgpg-error-1.7/work
>  * Running eautoreconf in '/net/pegasus.ins.cwi.nl/export/scratch/stripe/fabian/gentoo/prefix64/var/tmp/portage/dev-libs/libgpg-error-1.7/work/libgpg-error-1.7' ...
>  * Running aclocal -I m4 -I /net/pegasus.ins.cwi.nl/export/scratch/stripe/fabian/gentoo/prefix64/usr/share/aclocal ...
> Hangup
> (pegasus:portage/dev-libs/poppler) fabian%
> 
> e.g. Portage terminating immediately on a SIGHUP.  If I sent SIGHUP myself to
> Portage from another shell it immediately stops as well.
> 
> Can some one Linux try to reproduce this?  I tested it by doing emerge -av portage and from another terminal SIGHUP that emerge.

Well, what else would you expect from SIGHUP? It's supposed to mean
that the terminal has been lost, right? That's what it says here:

  http://en.wikipedia.org/wiki/SIGHUP

If you want a program to continue running after the terminal is
lost, then you're supposed to do something like use nohup or run it
inside of a screen session.
- --
Thanks,
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEARECAAYFAknwqtcACgkQ/ejvha5XGaN4OACeIluDFQ9wGAzYHKPp0OUL6y+K
BZcAnjtzQPlN3u+o8hOoaFrqY4jfNdPO
=w5IF
-----END PGP SIGNATURE-----