When a provider process exits at shutdown, by receiving a SIGUSR1 from stopBroker(), it should attempt to close any outstanding http request handlers by sending some sort of CMPI_RC_ERR_FAILED response. Not only will this notify the client, hopefully allowing it to terminate normally, it allows the SFCB http req handler process to complete, so it will not be indefinitely hung in spRcvMsg() waiting for a response.
For example, we might return a message like the following to the client:
$ wbemcli cm http://localhost/root/cimv2:Sample_Method Misbehave.Action=hang * * wbemcli: Cim: (1) CIM_ERR_FAILED: *** Provider TestMethodProvider(14155) exiting due to a shutdown request *
Log in to post a comment.