I'm new to C and processes, sorry if my question sounds dumb. below is my code:
int main()
{
pid_t pid;
if ((pid = fork()) == 0){
pause();
printf("child process restarts!\n");
exit(0);
}
kill(pid, SIGCONT);
exit(0);
}
so in the parent process, I did send SIGCONT to the child process, so the child process suspended by pause shoud resume, but I didn't see any output printed, which means the child process hasn't restarted? so how can I resume the child process?