| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
SIGTTOU it means the process is not in the foreground process group
which, in most cases, means that the shell has taken control of the
tty. Requiring the user the fg the process in this case doesn't
make sense and can result in both SIGTSTP and SIGTTOU being sent
which can lead to the process being suspended again immediately
after being brought into the foreground.
|
| |
|
|
|
|
| |
ok jca krw ingo
|
|
|
|
|
|
| |
get suspended normally when not the foreground process. Fix potential
infinite loop when restoring terminal settings if process is in the
background when restore occurs. OK miod@
|
|
|
|
|
|
|
| |
the most recent one will be stored for later re-delivery. When the signal
handlers are restored, all except the most recent signal will be lost.
Replace the single variable with an array so signals are not lost.
ok deraadt@
|
|
|
|
|
| |
there is no chance of output that was written but still pending to
be displayed. This is what the original getpass(3) did.
|
|
|
|
|
|
|
| |
backgrounded. Do not print the password prompt in this case since
the first read will result in the process receiving SIGTTIN.
Fixes an issue where the password prompt would be displayed when
readpassphrase() would not be able to read anything. OK deraadt@
|
| |
|
|
|
|
|
|
| |
Kill old files that are no longer compiled.
okay theo
|
|
|
|
|
| |
e.g. a terminating scp killing its ssh child so retry on EINTR.
From peak@argo.troja.mff.cuni.cz via portable openssh bugzilla #905
|
|
|
|
| |
where applicable.
|
| |
|
|
|
|
| |
Based on a patch from Brett Eldridge.
|
|
|
|
|
| |
and then re-deliver. Note that for this to work with setugid processes,
the recent fix to cansignal() in kern_sig.c is required.
|
| |
|
|
|
|
|
| |
o Return NULL of read(2) returns -1
o Add ERRORS and STANDARDS sections
|
|
|
|
|
|
|
|
| |
unblocking the signal and redelivering it just make all our
signal handler interupt system calls and set a flag. We can just
deliver the signal at the end right before we would normally return.
This solves the SIG_IGN problem nicely and causes readpassphrase() to
return when someone hits ^C even if the handler is SIG_IGN.
|
| |
|
|
|
|
|
|
|
| |
blocking SIGINT and SIGTSTP, catch them (along with SIGHUP, SIGQUIT, SIGTERM).
We restore the tty mode as needed and then restore the original signal
handler and resend the signal. For SIGTSTP, upon return from suspend
the user is re-prompted for the passphrase.
|
|
|
|
| |
tcgetattr() mucked with the passed in struct termios in some way.
|
|
|
|
|
|
| |
flags to keep track of what we changed. Print a newline if echo
is off, even if we didn't turn it off ourselves. Fixes art's
problem with a newline not being printed when piping to less.
|
| |
|
| |
|
|
|
|
| |
expect to be able to use ^T in a password.
|
|
|
|
| |
turned off since we already printed one from the user.
|
|
getpass(3) is now implemented in terms of readpasasphrase(3).
|