ugly output of wait_for_pids with kill(1) builtin

Jilles Tjoelker jilles at stack.nl
Tue Jun 8 21:45:29 UTC 2010


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


More information about the freebsd-rc mailing list