Opened 9 years ago

Closed 9 years ago

#1092 closed defect (fixed)

rasmgr doesn't shutdown rasserver properly

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 (last modified by Dimitar Misev)

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 30ms is more than enough) before issuing the final SIGKILL.

Change History (3)

comment:1 by Dimitar Misev, 9 years ago

Description: modified (diff)

comment:2 by Dimitar Misev, 9 years ago

Description: modified (diff)

comment:3 by Dimitar Misev, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.