[Toybox] od (was: Editors and such.)
Andre Renaud
andre at bluewatersys.com
Sun Jul 1 12:47:46 PDT 2012
> If the output of od gets dropped (-EPIPE), what happens? Should it retry
> short writes, which implies xprintf() should do an xmprintf() into a
> malloc buffer and then do a writeall() on it, although I really am
> trying to get automatic retry in there with sigaction(SA_RESTART) but
> that doesn't protect you against _short_ writes, just spurious zero
> length writes, and yes you can get that with "cat | cat" when you kill
> -STOP and then kill -CONT them...
What is the response in general of other utilities to this behaviour?
Is it the kind of thing you need to work around, or is it acceptable
to have OD error out? I would have thought that if you kill -STOP
something, it is conceivable that programs waiting for it's output
would fail.
Regards,
Andre
1341172066.0
More information about the Toybox
mailing list