Re: A portable code question

Поиск
Список
Период
Сортировка
От Benjamin Minshall
Тема Re: A portable code question
Дата
Msg-id HCECLGBPPGLHHAFMDHPAAEFGCAAA.minshall@intellicon.biz
обсуждение исходный текст
Ответ на A portable code question  (nolan@celery.tssi.com)
Ответы Re: A portable code question  (nolan@celery.tssi.com)
Re: A portable code question  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-hackers
Assuming you're using file streams to write to the pipe, fflush() will do
the trick.

> -----Original Message-----
> From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org]On Behalf Of
> nolan@celery.tssi.com
> Sent: Thursday, June 26, 2003 2:20 PM
> To: pgsql hackers list
> Subject: [HACKERS] A portable code question
>
>
> In the little fix I came up with for psql last night, I need to be able
> to ensure that something sent to a pipe (and then to stdout) completes
> before issuing the prompt directly to stdout.
>
> I did this with: "system ('sleep 1');", but I'm fairly sure that is
> not portable nor does it ENSURE completion.
>
> What's the proper way to do this?  And what's a good book on writing
> portable code?
> --
> Mike Nolan
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Swan
Дата:
Сообщение: Re: Two weeks to feature freeze
Следующее
От: Austin Gonyou
Дата:
Сообщение: Re: Two weeks to feature freeze