Off-Topic > Off-Topic - Tiny Core Lounge

how to tell if PID is running in foreground or background

<< < (2/2)

GNUser:
That does seem more correct.
However, I tested what you suggested before several times and it works as intended.
I guess when a process is the process group leader, its PID will be the same as the process group ID.

Rich:
Hi GNUser
Since it appears that a  PID  and a  process group ID  don't have to match, I  felt I should correct my answer. After all, someone
may come across this at a later date, and that distinction may be important to them.

Navigation

[0] Message Index

[*] Previous page

Go to full version