Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 2010 23:45:27 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        freebsd-rc@FreeBSD.org
Subject:   ugly output of wait_for_pids with kill(1) builtin
Message-ID:  <20100608214526.GB9977@stack.nl>

next in thread | raw e-mail | index | archive | help
I'm experimenting with making kill an sh(1) builtin (*). However, this
makes wait_for_pids's output ugly: the kill builtin is too fast and
almost always detects the process is still running or a zombie, so the
Waiting for PIDS message appears for all daemons.

NetBSD does not appear to have this problem as much as they only have
KEYWORD: shutdown where it is strictly necessary.

Any ideas how to avoid this?

One such option would be some sort of modification to pwait(1).

(*) Reasons to do this:
1. allow kill %1
2. make sure kill is found before $PATH
3. make kill work even if fork is impossible

-- 
Jilles Tjoelker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100608214526.GB9977>