Hi,
I rewrote my proposal with select(). Now readstdin() will return if it
cannot read data from stdin during more than 1 u_sec. It will set the
static flag 'eof' to 1 if it has read the end of file character. This
way while eof is 0, you know you should call readstdin() again.
Attached is a patch that you can also pull from
https://bitbucket.org/chmduquesne/dmenu
This archive was generated by hypermail 2.2.0 : Mon Nov 29 2010 - 01:24:02 CET