From b67e49f7738286156eb517ae8849b6899a122bc7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 10 Jul 2006 19:40:08 +0000 Subject: [PATCH] Don't call emergelog() from the parallel-fetch process for bug #88837. svn path=/main/trunk/; revision=3833 --- bin/emerge | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index 78872bd22..018263b0a 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3826,9 +3826,11 @@ def emerge_main(): signal.signal(signal.SIGINT, emergeexitsig) signal.signal(signal.SIGTERM, emergeexitsig) + # This hack prevents parallel-fetch from confusing emerge.log parsers. + emerge_pid = os.getpid() def emergeexit(): """This gets out final log message in before we quit.""" - if "--pretend" not in myopts: + if "--pretend" not in myopts and emerge_pid == os.getpid(): emergelog(xterm_titles, " *** terminating.") if "notitles" not in settings.features: xtermTitleReset() -- 2.26.2