Issue:
During an interview, the interviewer opened Task Manager and manually ended the pmodule process. As soon as the process was terminated, the entire application closed immediately.
Steps to Reproduce:
Launch the application.
Open Task Manager.
Locate the
pmoduleprocess.Right-click the process and select End Task.
Actual Result:
The
pmoduleprocess is terminated.The application exits immediately.
Expected Result:
The application should handle the termination of the
pmoduleprocess gracefully.If
pmoduleis a critical dependency, the application should either:automatically restart the required process,
display an appropriate error or recovery message, or
recover without closing unexpectedly.
If exposing
pmodulein Task Manager is not required, consider running it as a protected background service or redesigning the architecture to prevent accidental termination from immediately shutting down the application.
Impact:
This behavior was highlighted during an interview, where terminating the pmodule process caused the application to close unexpectedly, giving the impression that the application is not resilient to the failure of a dependent process.