Subject: Re: pkgsrc, bmake, Linux and Ctrl+C
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Michal Pasternak <michal@pasternak.w.lub.pl>
List: tech-pkg
Date: 01/14/2004 08:10:36
Martti Kuparinen [Wed, Jan 14, 2004 at 09:55:42AM +0200]:
> What am I talking about? In Linux, go to some package which has lots of
> dependecies (e.g. meta-pkgs/xfce4), run bmake and try to interrupt the
> process by pressing ^C. Now type "ps axw" and see how some (sub?)makes
> are still running, ftp is fetching files, etc. It can be very hard to
> kill all those subtasks...

Same on FreeBSD-STABLE, I was also planning to put up such issue.

When I start:

	cd /usr/pkgsrc && bmake fetch
	
I hardly can killall/pkill it, either with -9, -11 or -15. Process proceeds
first to "audio" directory, okay, files are fetched -- if I press CTRL+C now:

	* fetch is aborted
	* bmake in "audio" proceeds to the next package
	* toplevel bmake proceeds to "benchmarks" category
	
As you can easily count, after a few more kills I can have "bmake fetch"
running in few pkgsrc directories.

This is not a critical issue, but it would be nice to have it
fixed/examined. 

-- 
Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net
::don't use MySQL::details on http://sql-info.de/mysql/gotchas.html::