This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

v1.3.12-2 shmctl(IPC_STAT) / postgres question


Hi.

I have postmaster install as an NT service through cygrunsrv.
Usually it shuts startsup and shutsdown fine.

But it seems that when the machine crashes, the service fails to start
because
it was unable to properly shutdown.

I originally thought this was a postgres issue with stale postmaster.pid
file, but the postgres folks
told me that even with a stale pid file, postmaster should start up because
it will then
perform more checking to see whether the shared memory is indeed in use.

So..I was wondering is shmctl(IPC_STAT) on cygwin behaving differently than
a
standard unix system? In particular, what error code does cygwin return if
there's no
such shared memory ID? Do the shared memory blocks indeed go away even
after
a machine crash+reboot?

Thanks for any help you can offer.

-Tony



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]