Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Exit request support (shm?) #219

Open
4 tasks
grandrew opened this issue Feb 27, 2016 · 0 comments
Open
4 tasks

Exit request support (shm?) #219

grandrew opened this issue Feb 27, 2016 · 0 comments
Assignees
Milestone

Comments

@grandrew
Copy link
Collaborator

Add exit request support for external helper to be able to control daemons' states

  • support exit while connected
  • support exit at client side while attempting to connect
  • support exit for server process
  • fd server exit request support (check SHM)

server and client connecting processes can receive ordinary signals and exit; but it can be a challenge to get their PID

  • client may update their SHM status pid so that helper can find them; but as their process_num is unkown at this time it is inconsistent to use the available fields;
  • connecting client may check SHM field that indicates exit request, at process_num 0
  • server listening process may check exit request at SHM index 0 process_num 0; should receive a SIGHUP in order to exit though as it waits on accept indefinitely; need to check that connected processes safely ignore it
@grandrew grandrew self-assigned this Feb 27, 2016
@grandrew grandrew added this to the Soft 1.0 milestone Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant