Skip to content
Snippets Groups Projects

fix(tarantool-sys): fix graceful stopping

Merged Georgy Moshkin requested to merge fix/graceful-stopping into master

Was broken because tarantool_free checks if the current process is the main one and not the child, which was forked at some point (at what point?). This check was implemented by saving the original process's id in the static variable master_pid, which got set when the code got loaded the first time into memory.

So we broke this when we started forking the process in picodata, which resulted in master_pid being set to the pid of the picodata's "supervisor" process, which doesn't even enter tarantool runtime.

Closes #37 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading