I am running a process , from which I would like to get notification of the termination of some another process. In windows we can use WaitForSingleObject, by passing the handle of the process whos termination we are intersted in . I am new to Linux world , please suggest some approach.
On Linux (and indeed most *NIXen), you can only wait for processes that are children of the current process, unless you have root privileges (or effective capabilities that allow general tracing - this can be arranged through the capability system without granting full root access, but requires consciously configuring it...), where you can use ptrace()
to attach to arbitrary processes in order to monitor them.