Reset alarm before setting to 2secs
This commit is contained in:
parent
634c7d3e97
commit
4f4d5d418a
@ -443,6 +443,7 @@ int main(int argc, char ** argv) {
|
|||||||
if (sb[0] == TTYPE) {
|
if (sb[0] == TTYPE) {
|
||||||
/* This was a response to the TTYPE command, meaning
|
/* This was a response to the TTYPE command, meaning
|
||||||
* that this should be a terminal type */
|
* that this should be a terminal type */
|
||||||
|
alarm(0);
|
||||||
alarm(2);
|
alarm(2);
|
||||||
strcpy(term, &sb[2]);
|
strcpy(term, &sb[2]);
|
||||||
done++;
|
done++;
|
||||||
@ -450,6 +451,7 @@ int main(int argc, char ** argv) {
|
|||||||
else if (sb[0] == NAWS) {
|
else if (sb[0] == NAWS) {
|
||||||
/* This was a response to the NAWS command, meaning
|
/* This was a response to the NAWS command, meaning
|
||||||
* that this should be a window size */
|
* that this should be a window size */
|
||||||
|
alarm(0);
|
||||||
alarm(2);
|
alarm(2);
|
||||||
terminal_width = sb[2];
|
terminal_width = sb[2];
|
||||||
done++;
|
done++;
|
||||||
|
Loading…
Reference in New Issue
Block a user