[Freeciv-Dev] Re: setvbuf on stdout instead of using fflush
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 15 May 2000, J. S. Bach wrote:
> On Mon, 15 May 2000, David Pfitzner wrote:
>
> > Dan Gohman <gohmandj@xxxxxxxxxxx> wrote:
> >
> [0] It appears that using readline in the server would require threads,
> because otherwise we can't do anything while readline is waiting for
> input. I'm not going to code this anytime soon, however.
Actually it isn't, if you look carefully in the readline info, you will
notice there are functions that enable you to call readline when you want
(e.g. when there is input on descriptor 0 aka stdin).
Hint: try searching for "Alternate Interface".
---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
|
|