On Sun, Jan 31, 2016 at 04:19:00AM +0100, Juan Francisco Cantero Hurtado wrote:
> -current, amd64, base and ports tree updated.
> 
> Probably some details are irrelevant but I don't know where is the
> problem exactly.
> 
> Here are the steps:
> - Create a shellscript with this content:
> #!/bin/sh
> /usr/ports/infrastructure/bin/dpb -m -D COLOR=0 -D NO_CURSOR=1 -D 
> ALWAYS_CLEAN=1 -D WAIT_TIMEOUT=0 -q -c -j 4 -p 4 -f 0 -u -U -r -R
> 
> - Run as a regular user "doas ./your_script.sh".
> - Wait until dpb is using the 4 slots to "build" the packages.
> - Press Ctrl+c
> - Run top -CHIS -s 1
> 
> Do you see gcc, make, as, ld, etc running in top?
> 
> I see a lot of processes related to the build running for a very long
> time. I tried with zsh and ksh. "fg" doesn't show processes running in
> the background.

Don't do that. ^C doesn't "pass" through doas.  You have to kill dpb as root
as well.

In general, I tend to do tmux/doas sh, THEN start dpb, that way I can kill it,
and everything that depends on it with ^C.

You can only kill stuff you own easily.

Reply via email to