123e840f8b
Only invoke the old signal handler if it's a real signal handler and not SIG_IGN, SIG_DFL, SIG_HOLD, or SIG_ERR, using new static function issighandler(). Avoids an intermittent race condition with a null pointer dereference via (*SIG_DFL)(). Bug class reported by Joyu Liao from Juniper Networks. Use SIG_ERR instead of NULL as the indicator that a signal handler hasn't been changed, so that SIG_DFL (equivalent to NULL) will be restored. |
||
---|---|---|
.. | ||
cmds.c | ||
cmdtab.c | ||
complete.c | ||
domacro.c | ||
extern.h | ||
fetch.c | ||
ftp_var.h | ||
ftp.1 | ||
ftp.c | ||
main.c | ||
Makefile | ||
progressbar.c | ||
progressbar.h | ||
ruserpass.c | ||
ssl.c | ||
ssl.h | ||
util.c | ||
version.h |