This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
OT: Re: help with C(I know that have many c master here)
- From: Rayson Ho <raysonlogin at yahoo dot com>
- To: culikr at uol dot com dot br
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 15 Sep 2002 10:41:16 -0700 (PDT)
- Subject: OT: Re: help with C(I know that have many c master here)
Hi Luiz,
Are you looking for the soultion for your school assignment??
Anyway, what you need is fork(2), sleep(3), kill(2).
Something like:
pid = fork();
if (pid == 0)
{
/* child */
}
else
{
/* parent */
sleep(30);
kill(pid, )
}
Rayson
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com