Basically this piece of code doesn't execute in Code::Block
in_pid = fork(); <--------- doesn't work
if (in_pid == 0) // is this the child process ?
{
execl("keyboard", "keyboard", childarg, 0); <---------- doesn't execute the other main in keyboard.cc
//getchar();
// should never reach here
fprintf(stderr,"osmain: can't exec keyboard, errno %d\n",errno);
//getchar();
cleanup();
//getchar();
exit(1);
}
the second target assigned to keyboard.cc is keyboard, so why can't this main call the child process?