Peter Memishian wrote:
>  > I think one of the points was, surprisingly, that there were additional
>  > features in ksh93's sleep.  (Fractional sleeps, e.g. sleep for 500 msec
>  > instead of 1 sec granularity.)
> 
> This could be added to traditional sleep with less than 10 lines of new C
> code.  It's hardly a justification.

Erm... I doubt it's "just 10 lines" - you need a bit more code. Beyond
that we would have to maintain two codelines, including for the
following upcoming changes:
- Adding "-s" for alternative signal handling
- Use of |sched_yield()| for zero values (based on empirical testing for
the builtin command version)
- GNU sleep-style postfix operators for { seconds, minutes, hours, days,
weeks, months, years }

Some of this stuff is already implemented in the current AST/ksh93
"sleep" builtin and the other things are added with one of the next two
ksh93-integration updates. But we keep /usr/bin/sleep as standalone
utilty with no codesharing between /usr/bin/sleep and the AST/ksh93
version of "sleep" we double the engineering time for this...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to