Re: [PATCHES] FW: Win32 fix for miscinit.c

2004-10-04 Thread Magnus Hagander
> >> Tom's recent patch to improve stale lockfile detection included a > >> call to getppid() which doesn't exist on Windows. > >> There is no clean way to implement one (previously discussed on > >> hackers-win32) hence the attach patch simply #ifdefs out the call. > > Done. I think this is no

Re: [PATCHES] FW: Win32 fix for miscinit.c

2004-10-04 Thread Tom Lane
"Dave Page" <[EMAIL PROTECTED]> writes: >> Tom's recent patch to improve stale lockfile detection >> included a call to getppid() which doesn't exist on Windows. >> There is no clean way to implement one (previously discussed >> on hackers-win32) hence the attach patch simply #ifdefs out the call.

Re: [PATCHES] FW: Win32 fix for miscinit.c

2004-10-04 Thread Andrew Dunstan
Ugh. *sigh* I wondered idly if we might be able to make a safe assumption about the staleness of the lockfile based on (possibly not very portably) comparing its mtime with the system boot time. cheers andrew Dave Page wrote: More haste, less speed... Patch attached this time! /D -Origina

[PATCHES] FW: Win32 fix for miscinit.c

2004-10-04 Thread Dave Page
More haste, less speed... Patch attached this time! /D > -Original Message- > From: Dave Page > Sent: 04 October 2004 14:41 > To: PostgreSQL-patches > Subject: Win32 fix for miscinit.c > > Tom's recent patch to improve stale lockfile detection > included a call to getppid() which does