HomeFreeBSD

mail: remove the SIGHUP handler from lex.c

Description

mail: remove the SIGHUP handler from lex.c

If the command is simply going to exit without doing any cleanup, then
an immediate exit(3) does not add any value and in-fact obscures that
the program was terminated by a signal.

This is motivated by POSIX conformance requirements, but it's also a
little bit of a tidy-up. Some investigation into the history of mail(1)
shows that, at one point, hangup() would attempt to save messages into
mbox before exiting. It was later transformed into a simple exit() and
likely could have been GC'd at that point.

Reviewed by: des, emaste, ivy
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D50247

Details

Provenance
kevansAuthored on May 14 2025, 7:20 PM
Reviewer
des
Differential Revision
D50247: mail: remove the SIGHUP handler from lex.c
Parents
rGdd3d1a769458: build.7: Document pkgbase PKG_FORMAT variable
Branches
Unknown
Tags
Unknown