[PATCH] getty: Wait until all output written to stdout hasbeentransmitted
rob at landley.net
Tue Jan 25 02:42:03 UTC 2011
On 01/24/2011 08:26 PM, Cathey, Jim wrote:
>> sleep(1) isn't sleep for 1 second, it's sleep for 1 milisecond.
> Que? man 3 sleep
> SLEEP(3) Linux Programmer's Manual
> sleep - Sleep for the specified number of seconds
> #include <unistd.h>
> unsigned int sleep(unsigned int seconds);
> sleep() makes the calling process sleep until seconds
> seconds have
> elapsed or a signal arrives which is not ignored.
Huh, you're right. My bad. (And usleep is in microseconds, so I
apparently wasn't thinking of that, either. Weird.)
More information about the busybox