|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    int Ns_WaitForProcess (
    int iPid, 
    int* pExitCode
    );
Wait for a proess to exit and write information about the process to the log. This function is essentially a wrapper around waitpid(2). It returns NS_OK if the process exited normally.