Hi,
I'm having a problem creating two child and manipulating signals.
My problem with forking is that when I do:
int main() {
pid = fork();
pid2 = fork();
}
This create more than two forks, so how do i create exactly two forks?
And for each child to do the following:
- execl
- have pid catch ctrl-c and totally ignore ctrl-\ after ctrl-c is pressed
- have pid2 catch ctrl-\ and totally ignore ctrl-c after ctrl-\ is pressed