Originally Posted by wildwizard
This should do the trick :-
man 3 daemon
just take a look at this code...!
in shell programming...
it was something like...
pid = $!
sleep 60 && kill TERM pid
i just tried converting a part of it to C....and i have a problem with that &...!
int kill( pid_t pid, int sig );
sleep(60) && kill(getpid(),15);
and u told daemon will do that job...is it like within daemon function..this while should be put???
Not getting it