[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [OBSD Programming] how to wait for input?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: [OBSD Programming] how to wait for input?
- From: Chuck Yerkes <chuck+obsd_(_at_)_2004_(_dot_)_snew_(_dot_)_com>
- Date: Tue, 17 Aug 2004 16:04:48 -0700
Quoting Otto Moerbeek (otto_(_at_)_drijf_(_dot_)_net):
> On Tue, 17 Aug 2004, [ISO-8859-1] Christian Sch?fer wrote:
> > getc() will try to read forever when there is nothing send. we need a
> > safe way to know if there actaully _is_ something to read first.
> check select(2) and poll(2).
> And grab a copy of "Advanced Programming in the Unix Environment"
> by Stevens for more info.
Read it from cover to cover. Then read his other books too.
Visit your host, monkey.org