Don't use fstat for readable pipe chars in dtexec.
authorMike Stroyan <mike@stroyan.net>
Sun, 9 Sep 2012 21:44:45 +0000 (15:44 -0600)
committerJon Trulson <jon@radscan.com>
Mon, 10 Sep 2012 00:23:45 +0000 (18:23 -0600)
commitf0a60e47b1b748d943401f2dbcd0b29e01b6a530
treea3d0bdd9b660a45f581056e7bb3f5d7e3b977593
parentbd70163b09ff59331bceba9506c7cc51962571f1
Don't use fstat for readable pipe chars in dtexec.

The dtexec code assumes that fstat reports pipe's readable chars.
Linux always reports 0 for st_size of a pipe.
Instead read one character when select reports readable.
Note EOF when select says readable but read returns 0.
cde/programs/dtexec/Main.c