modelica / Encryption-and-Licensing

Standardized Encryption of Modelica Libraries and Artifacts
BSD 3-Clause "New" or "Revised" License
3 stars 6 forks source link

Proper handling of LVE process termination on Linux #3

Open d94pn opened 1 year ago

d94pn commented 1 year ago

When calling

mlle_start_executable

a child process is spawned but the PID is not considered and there is no corresponding mlle_stop_executable or similar that calls wait or waitpid for the exiting child process, as far as I can see. This will normally leave zombie process where the chilld process (here the LVE) is wating for its parent to acknowledge its exiting. Is this merely neglected or have you any other means to avoid this? I've not checked this on Windows so I don't know the status there.

axelmartenssonmodelon commented 4 months ago

This would be needed for the use case where the tool needs to unload a library without exiting. We have not considered this use case. Would you be interested in contributing with a PR?