The following process does not continue after running kill -SIGCONT pid
from another terminal.
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("paused
");
pause();
printf("continue
");
return 0;
}
I expect the program to continue after sending the signal and printing "continue". How come this doesn't work as expected?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…