Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Applications don't clean up doors when exiting #19

Open
robertdfrench opened this issue Jun 27, 2021 · 1 comment
Open

Applications don't clean up doors when exiting #19

robertdfrench opened this issue Jun 27, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@robertdfrench
Copy link
Owner

Describe the bug
The example applications don't do any signal handling, so they don't clean up their doors if you kill them.

To Reproduce

  1. Default portunusd.conf
  2. Start any of the example applications (in /opt/local/libexec/portunusd/)
  3. kill that application
  4. Observe that its door still exists in /var/run/

Expected behavior
An exiting door server should cleanly detach its doors from the filesystem.

@robertdfrench robertdfrench added the bug Something isn't working label Jun 27, 2021
@robertdfrench robertdfrench self-assigned this Jun 27, 2021
@robertdfrench
Copy link
Owner Author

reproduction steps are different now (just cargo run --example x) but this problem remains -- there should be some way to:

  • correctly detach doors on a clean exit
  • Attempt to detach doors on a tumultuous exit
  • Check the "liveness" of doors on startup: like, if a file exists at the desired path, and it is a door, attempt to call it? But then that would need a health check of some kind.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant