pg_arch.c call to sleep() - Mailing list pgsql-hackers

From Andrew Dunstan
Subject pg_arch.c call to sleep()
Date
Msg-id 418E6986.20305@dunslane.net
Whole thread Raw
Responses Re: pg_arch.c call to sleep()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
We have the following warning on Windows:

pgarch.c:349: warning: implicit declaration of function `sleep'

To fix it we could include the right header (which appears to be 
<stdlib.h> in the Windows/Mingw case), or we could replace the call by a 
call to pg_usleep().

I'm inclined to do the latter, on grounds of consistency, but want to be 
sure that it will get the signal handling right.

Unless I hear squawks of objection I will supply a patch for that soon.

cheers

andrew


pgsql-hackers by date:

Previous
From: "Katsaros Kwn/nos"
Date:
Subject: Memory Context problems...
Next
From: Thomas Hallgren
Date:
Subject: Re: pgxs under Win32 for PL/Java