diff options
author | joerg <joerg@FreeBSD.org> | 1995-12-31 14:00:25 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-12-31 14:00:25 +0000 |
commit | b6da577a94b64818b9d7801831b6a6de8eccad3c (patch) | |
tree | b46c238f3117917c3906594b0d7972513ff90cef /lib/libc/gen/getpass.3 | |
parent | 4417f7962367aeb4c73b3b9bad8cbc565b2ccde8 (diff) | |
download | FreeBSD-src-b6da577a94b64818b9d7801831b6a6de8eccad3c.zip FreeBSD-src-b6da577a94b64818b9d7801831b6a6de8eccad3c.tar.gz |
Finally complete my fix for the behaviour of getpass(3) upon receipt
of signals. Signals are now properly caught, tty state is being
restored, and the previous sigaction triggered. Upon receipt of a
sigcont, echo is turned off again.
SIGTSTP causes a buffer flush, the man page mentions this. (Although
i rather think of it as a feature than a bug.)
This is likely to be my last FreeBSD action for 1995, xearth shows
me that our .au guys must already write 1996. :-)
Diffstat (limited to 'lib/libc/gen/getpass.3')
-rw-r--r-- | lib/libc/gen/getpass.3 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/gen/getpass.3 b/lib/libc/gen/getpass.3 index 34e91cb..f312d42 100644 --- a/lib/libc/gen/getpass.3 +++ b/lib/libc/gen/getpass.3 @@ -86,3 +86,7 @@ will modify the same object. The calling process should zero the password as soon as possible to avoid leaving the cleartext password visible in the process's address space. +.Pp +Upon receipt of a SIGTSTP, the input buffer will be flushed, so any +partially typed password must be retyped when the process +continues. |