Opened 9 years ago

Last modified 9 years ago

#1092 closed defect

rasmgr doesn't shutdown rasserver properly — at Initial Version

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: major Milestone: 9.2
Component: rasmgr Version: development
Keywords: Cc: Peter Baumann, Alex Toader, George Merticariu
Complexity: Medium

Description

in source:rasmgr/rasmgr_localsrv.cc (killServer(serverName)) there is this code:

            LDEBUG <<  now() << " killing rasdaman server " << iter->getName() << ", pid " << iter->getPID() << "...";

            // try graceful termination first
            int killResult = kill(iter->getPID(),SIGTERM);
            killResult = kill(iter->getPID(),SIGKILL);
}}
This is not correct, and rasserver never has the chance for a proper shutdown first, we need some wait time (I think 100-200ms is more than enough) before issuing the final SIGKILL.

Change History (0)

Note: See TracTickets for help on using tickets.