MBKWAITPID(3) MBK UTILITY FUNCTIONS MBKWAITPID(3)NAME
mbkwaitpid - wait for the end of a particular child process.
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "mut.h"
int mbkwaitpid( pid, mode, status )
int pid;
int mode;
int *status;
PARAMETER
pid Process number to wait.
mode If mode is set to 1, this function return only when the child process is terminated. Otherwise, function return immedi-
atly.
status If not NULL, the exit status of terminated child process.
DESCRIPTION
mbkwaitpid provides a centralized way to catch terminated child process. Because some Alliance library can create a child process, and
user application can do so, there must be a centralized way to get the exit status of process. The programmer should never modify the han-
dler for SIGCHLD.
RETURN VALUE
mbkwaitpid return 1 if child process is terminated, and 0 if isn't (case mode != 1 ).
SEE ALSO mbk(1), mbksetautoackchld().
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 November 20, 2000 MBKWAITPID(3)
Hello everybody, this is my first post on this forum. I have a program that has a child process that sleeps for 5 second and exit. I'm suppose to modify this program so that when the child exits, the parent reports the exit status of the child, so I also have to deal with SIGINT and SIGQUIT. Can... (1 Reply)
Hi all!
I'm using CentOS 5.2 with KDE.
Is it possible to get a processname/cmd of a terminated process (= PID not present with PS-command) ?
Are the processnames/scriptnames logged somewhere? (I did not find them in /var/log/messages) (5 Replies)
Hi Everyone,
I am using solaris 5.10.
I have a java process running in server mode in unix.
The problem is that it automatically forks i.e creates a child process.
I mean suddenly two instances of that process start running , in which the process-id of first instance is the parent... (5 Replies)
Hi All,
Below is the message I am getting and the process is failing after the child process. The exit status is 11 and the job it is doing is sorting. Is it the status 11 is because of space unavailability. I am sure about the status 11.
Below is the success message I got last on... (4 Replies)