[PATCH] getty: Wait until all output written to stdout hasbeentransmitted

Rob Landley 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(3)
> 
> NAME
>        sleep - Sleep for the specified number of seconds
> 
> SYNOPSIS
>        #include <unistd.h>
> 
>        unsigned int sleep(unsigned int seconds);
> 
> DESCRIPTION
>        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.)

Rob


More information about the busybox mailing list