process-running-child-p

process-running-child-p is a built-in function in `C source code'.

(process-running-child-p &optional PROCESS)

Return t if PROCESS has given the terminal to a child.
If the operating system does not make it possible to find out,
return t unconditionally.