8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 05:23:03 +01:00

Make SS kill itself on unix platforms when doing shutdown.

It helps with correct semaphores cleanup, important for some platforms.
This commit is contained in:
alexpeshkoff 2008-01-04 17:54:40 +00:00
parent 1ae9ff4376
commit ea09e47c86

View File

@ -736,6 +736,9 @@ void SVC_detach(Service* service)
#ifdef SERVER_SHUTDOWN
if (service->svc_do_shutdown) {
THREAD_EXIT();
#ifdef UNIX
kill(getpid(), 15);
#else
JRD_shutdown_all(true);
if (shutdown_fct) {
(shutdown_fct) (shutdown_param);
@ -743,6 +746,7 @@ void SVC_detach(Service* service)
else {
exit(0);
}
#endif //UNIX
/* The shutdown operation is complete, just wait to die */
while (true) {