Bugzilla – Attachment 2881 Details for
Bug 2619
infinite loop, 100% cpu use in ssh if ^Z is pressed at password prompt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Do not attempt to re-send SIGTTOU if we got it while restoring terminal modes.
readpassphrase-millert.patch (text/plain), 824 bytes, created by
Darren Tucker
on 2016-10-18 05:13:01 AEDT
(
hide
)
Description:
Do not attempt to re-send SIGTTOU if we got it while restoring terminal modes.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2016-10-18 05:13:01 AEDT
Size:
824 bytes
patch
obsolete
>ndex: lib/libc/gen/readpassphrase.c >=================================================================== >RCS file: /cvs/src/lib/libc/gen/readpassphrase.c,v >retrieving revision 1.25 >diff -u -p -u -r1.25 readpassphrase.c >--- lib/libc/gen/readpassphrase.c 14 Sep 2015 10:45:27 -0000 1.25 >+++ lib/libc/gen/readpassphrase.c 17 Oct 2016 13:57:05 -0000 >@@ -133,9 +133,13 @@ restart: > > /* Restore old terminal settings and signals. */ > if (memcmp(&term, &oterm, sizeof(term)) != 0) { >+ const int sigttou = signo[SIGTTOU]; >+ >+ /* Ignore SIGTTOU generated when we are not the fg pgrp. */ > while (tcsetattr(input, TCSAFLUSH|TCSASOFT, &oterm) == -1 && > errno == EINTR && !signo[SIGTTOU]) > continue; >+ signo[SIGTTOU] = sigttou; > } > (void)sigaction(SIGALRM, &savealrm, NULL); > (void)sigaction(SIGHUP, &savehup, NULL); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2619
:
2879
| 2881