diff options
author | mikeh <mikeh@FreeBSD.org> | 2001-12-18 20:52:09 +0000 |
---|---|---|
committer | mikeh <mikeh@FreeBSD.org> | 2001-12-18 20:52:09 +0000 |
commit | e4034fe298af9398dae0cac602d8a28ec6e51489 (patch) | |
tree | 89731abafbceb13b0e7b78a6e281339c99fbfef9 /usr.bin/mail/names.c | |
parent | 1750942f6f64d20cc8853d2d1a60a3daaeeb1110 (diff) | |
download | FreeBSD-src-e4034fe298af9398dae0cac602d8a28ec6e51489.zip FreeBSD-src-e4034fe298af9398dae0cac602d8a28ec6e51489.tar.gz |
Sync with most of NetBSD's changes, including:
*) Sync with 4.4BSD-Lite2
*) Set usecs for utimes()
*) Add 'inc' command and 'autoinc' option that check for new mail
manually and automatically, respectively
*) Use POSIX signal handling and tty semantics
*) Handle long lines correctly when paging messages
*) Add ability to explicitly search 'To:' line
*) Various manpage cleanups
*) Support overriding '~/.mailrc' with $MAILRC
*) Support 'askbcc' and 'asksub' options
*) Fix various bugs
Reviewed by: ru (mail.1)
Obtained from: NetBSD
Diffstat (limited to 'usr.bin/mail/names.c')
-rw-r--r-- | usr.bin/mail/names.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/mail/names.c b/usr.bin/mail/names.c index 8d4bb42..976bfa4 100644 --- a/usr.bin/mail/names.c +++ b/usr.bin/mail/names.c @@ -296,6 +296,7 @@ outof(names, fo, hp) if (ispipe) { int pid; char *sh; + sigset_t nset; /* * XXX @@ -306,9 +307,12 @@ outof(names, fo, hp) */ if ((sh = value("SHELL")) == NULL) sh = _PATH_CSHELL; - pid = start_command(sh, - sigmask(SIGHUP)|sigmask(SIGINT)|sigmask(SIGQUIT), - image, -1, "-c", fname, NULL); + (void)sigemptyset(&nset); + (void)sigaddset(&nset, SIGHUP); + (void)sigaddset(&nset, SIGINT); + (void)sigaddset(&nset, SIGQUIT); + pid = start_command(sh, &nset, image, -1, "-c", fname, + NULL); if (pid < 0) { senderr++; goto cant; |