Fixing isolated process PID manipulation.

Registering an isolated PID in the global PID hash is wrong
because it can be duplicated.  Isolated processes are stored only
in the children list until the response for the WHOAMI message is
processed and the global PID is discovered.

To remove isolated siblings, a pointer to the children list is
introduced in the nxt_process_init_t struct.

This closes #633 issue on GitHub.
This commit is contained in:
Max Romanov
2022-02-17 12:33:46 +00:00
committed by Andrew Clayton
parent d37b76232e
commit 900828cc4b
6 changed files with 108 additions and 25 deletions

View File

@@ -93,6 +93,13 @@ the ruby application process could crash if it's interrupted by SIGTERM signal.
</para>
</change>
<change type="bugfix">
<para>
when isolated PID numbers reach the prototype process host PID,
the prototype crashed.
</para>
</change>
</changes>