Skip to content
Snippets Groups Projects
Verified Commit 5b5d25f3 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

Handle supervisor termination in child

We don't want a child process to live without the supervisor.

Usually, supervisor waits for child forever and retransmits termination
signals. But if the parent is killed with a SIGKILL there's no way to
pass anything.

This patch supplies a child process with a `supervisor_fuse` fiber. It
tries to read from a pipe (that supervisor never writes to), and if the
writing end is closed, it means the supervisor has terminated. In this
case, child process terminates too.

Part of https://git.picodata.io/picodata/picodata/picodata/-/issues/56
parent b6cf01a4
No related branches found
No related tags found
1 merge request!72Fix process management
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment