From owner-freebsd-ports@freebsd.org Wed Jul 8 15:30:14 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F10B36557E for ; Wed, 8 Jul 2020 15:30:14 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B23CS5wvFz4C8q for ; Wed, 8 Jul 2020 15:30:12 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id 068FUFQ4052566 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 8 Jul 2020 08:30:15 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 068FUEsK052565; Wed, 8 Jul 2020 08:30:14 -0700 (PDT) (envelope-from fbsd) Date: Wed, 8 Jul 2020 08:30:13 -0700 From: bob prohaska To: Ronald Klop Cc: freebsd-ports@freebsd.org Subject: Re: Gracefully killing and restarting a port build.... Message-ID: <20200708153013.GA52503@www.zefox.net> References: <20200708034703.GA50491@www.zefox.net> <941930819.28.1594197843269@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <941930819.28.1594197843269@localhost> X-Rspamd-Queue-Id: 4B23CS5wvFz4C8q X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [2.23 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.72)[0.718]; NEURAL_HAM_LONG(-0.60)[-0.605]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.21)[0.214]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2020 15:30:14 -0000 On Wed, Jul 08, 2020 at 10:44:03AM +0200, Ronald Klop wrote: > > > Kill the leaf nodes of the process tree. So kill the c++ processes. Or type ctrl-c if you have control of the terminal. In this case I'd lost control of the controlling terminal and didn't know how to recover it. After kill -9 of the initial make process I left the system standing overnight, to see if killing the original make process would eventually propagate down to the leaf nodes. It didn't. Then I used killall c++, and again, it killed the named processes, but other things, notably pkg, kept running. After waiting a few minutes they were killall-ed. A notation from ninja eventually showed up in the logfile saying "interrupted by user", so maybe ninja was the place to start shutting things down. > If you are running the compile in a jail (like poudriere) you might use "killall -j c++" or something similar. No room for a jail on a Pi, alas.... > Pkill can be usable also. Thank you, I didn't know about it. > BTW: How graceful a restart works is outside of the scope of the ports framework and depends a lot on the structure of the chromium build process itself. > Understood. This is the first time I've ever needed to kill a port build. Usually they die prematurely of natural causes! Thanks for your help bob prohaska