Re: [HACKERS] select() for small sleep

2003-12-30 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > I wrote: >> There are a couple of other places where [select()] is used for small >> sleeps (storage/lmgr/s_lock.c and access/transam/xact.c) - > What is the preferred way to handle these 2 cases? We could handle them > with #ifdef'd code inline, or

[HACKERS] select() for small sleep

2003-12-30 Thread Andrew Dunstan
I wrote: There are a couple of other places where [select()] is used for small sleeps (storage/lmgr/s_lock.c and access/transam/xact.c) - those should possibly be abstracted out (Windows doesn't behave well there anyway, I believe - with 0 FDs I read somewhere it returns immediately regardles