Dan Mick wrote:
> 
> > What do you mean ? AFAIK the "sleep" builtin shouldn't do that...
> 
> Try "truss -o /tmp/truss.out -u *:* sleep 1", and look in the output for
> name_service_door.

Oh-oh...

> then look up to the libc call to getpwnam.

... which comes from |libshell::sh_tilde()| ...

> What happens when nameservice is NIS, and your network is down?

... then you hang until NIS becomes available again... ;-/

... but the problem isn't the "sleep" builtin, it's the wrapper script
("alias.sh") which uses the tilde ('~') and the shell tries to expand it
(which leads to a call to |getpwnam()|). That's an unintended
side-effect.

Which OS/Net build do you use right now (I'm trying to figure out
whether your system has the fix for
http://mail.opensolaris.org/pipermail/onnv-notify/2009-February/008582.html
or not) ? And what does $ /usr/xpg4/bin/file /usr/bin/sleep # output ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

Reply via email to