VMware Cloud Community
mail4visu
Contributor
Contributor

VcbMounter.exe is not responding to signal SIGTERM, SIGINT.

Hi

I wrote a program "testing" which has to kill vcbMounter process when Ctrl+c is pressed. I register for the signal handler function for signal SIGTERM and SIGINT On interrupt, handler call the signal interrupt handler function which invokes kill(vcbMounterPid, SIGINT) system call where vcbMounterPid is the process id of the spawned process vcbMounter binary. "testing" prcoess goes to wait state till It receive vcbMounter successfully terminates; but what I observed is vcbMounter keep going until It has done mounting all the disk and then it terminates. Thus it takes long time rather than terminating immediately on receiving signal.

vcbMounter terminates immediately on receiving Ctrl+C, if run from command line; but It is not happening with "testing" program calling kill system call. I tested "testing" program to kill other system running process and I find they were terminated immediately. Please let me know what is the reason behind this. Thanks in advance.

0 Kudos
0 Replies