~lttng/lttng-ust/lttng-ust

Viewing all changes in revision 3000.

  • Committer: Mathieu Desnoyers
  • Author(s): Jérémie Galarneau
  • Date: 2022-09-15 20:34:31 UTC
  • Revision ID: git-v1:f8efdde9fd8fa32c4313c2848cc6bcb42a3d5871
Fix: lttng-ust-comm: wait on wrong child process

The code currently assumes that the forked process is the only child
process at that point in time. However, there can be unreaped child
processes as reported in the original bug.

From wait(3), as currently used, "status is requested for any child
process."

Using the pid explicitly ensures a wait on the expected child process.

More context is available at:
https://bugs.lttng.org/issues/1359

Fixes #1359
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I8a4621d79c61f7dfefde5c2b94bdee9752e1973d

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: