This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
有件事让我很困惑,核心代码如下
char buffer[MAX_BUFFER+1];
int ret;
signal(SIGALRM,wakeup);
printf("You have 3 seconds to enter the password\n");
alarm(3);
ret=read(0,buffer,MAX_BUFFER);
alarm(0);