RE: kill the child process
check out the man page for the "kill" system call. It's in section 2.
You should have the pid since you started the child...
jim
>----------
>From: Shao Zhang[SMTP:shao@cia.com.au]
>Sent: Tuesday, June 29, 1999 1:12 AM
>To: Debian Mail List
>Cc: The recipient's address is unknown.
>Subject: kill the child process
>
>Hi,
> sorry for this none-debian specific question.
>
> In my C program, I have created a child process to do some timeout
> stuff in case something goes wrong.
>
> But when I exit the main program, how do I kill this child process
> since I no longer need it??
>
> I have checked the man page for wait... but is there anyway to instantly
>kill
> this child process??
>
> Thanks
>
>Shao.
>
>--
>____________________________________________________________________________
>Shao Zhang - Running Debian 2.1 ___ _ _____
>Department of Communications / __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _
>University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` |
>Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
>Email: shao@cia.com.au |___/
>_____________________________________________________________________________
>
>
>--
>Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org <
>/dev/null
>
>
Reply to: