Can a process wait on another process, that is not one's child?

Solution Verified - Updated -

Issue

As per a vmcore analysis it appears that process A waits (using wait4()) on process B, but process B is not a child of process A. Instead, process B is a child of process C. At the same time, processes A and C belong to the same thread group.

As per the man page of waitpid(2), the -ECHILD error is expected to be returned if the process specified is not a child of the calling process.

Environment

  • Red Hat Enterprise Linux (RHEL)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content