Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 1999 15:46:31 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Mikhail Teterin <mi@video-collage.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: wait(1) utility -- where is it?
Message-ID:  <19990120154631.A97871@dan.emsphone.com>
In-Reply-To: <199901201829.NAA07360@xxx.video-collage.com>; from "Mikhail Teterin" on Wed Jan 20 13:29:08 GMT 1999
References:  <199901201829.NAA07360@xxx.video-collage.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 20), Mikhail Teterin said:
> There is a man-page for wait(1), which talks about "wait utility".
> Such a utility, however, is nowhere to be found :( The tcsh's "wait"
> is a built-in command that accepts no arguments and sh's "wait"
> accepts an optional _job_ id, but not the pid, the man page talks
> about.

Have you actually tested sh's wait command?  It seems to wait on PIDs
just fine for me:

$ sleep 20 & jobs
[1] 98000                     sleep 20
$ date ; wait 98000 ; date
Wed Jan 20 15:41:59 CST 1999
Wed Jan 20 15:42:14 CST 1999
[1] 98000 Exit 0              sleep 20
$

took me 5 seconds to type the 'wait' comandline.

There cannot be a /usr/bin/wait, since the wait() syscall only lets a
process wait on its children.  It has to be a shell builtin.

	-Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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