Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow
Дата
Msg-id 200505111513.j4BFDfZ00931@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow
Список pgsql-patches
Andrew Dunstan wrote:
>
>
> Bruce Momjian wrote:
>
> >          */
> >! #ifndef WIN32
> >!         sleep(sleep_secs);            /* Unix sleep is seconds */
> >! #else
> >!         sleep(sleep_secs * 1000);    /* Win32 sleep() is milliseconds */
> >
> >
>
> Shouldn't the be Sleep with a capital S? see
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/sleep.asp

I was wondering about that, so I compiled it with MinGW and sleep()
worked fine, so I stuck with that.  In fact, I just tried Sleep() and
that didn't work.  It said:

    C:/DOCUME~1/BRUCEM~1/LOCALS~1/Temp/ccMLbaaa.o(.text+0x27):x.c: undefined
    reference to `Sleep'

Maybe if I added some includes it would work, but sleep() seemed safest.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: [BUGS] BUG #1588: pg_autovacuum sleep parameter overflow