mail: tests: reset signal disposition before testingAs a good citizen of the OS, mail(1) won't try to catch signals thatwere ignored when it started and it won't reconfigure its signal maskunless
mail: tests: reset signal disposition before testingAs a good citizen of the OS, mail(1) won't try to catch signals thatwere ignored when it started and it won't reconfigure its signal maskunless it's going to try and handle a signal. The test should startmail(1) off in a well-known state for the signal that it's trying totest in order to get the behavior that's desired.No functional change, just improves the resilience of the test.Reviewed by: desSponsored by: Klara, Inc.Differential Revision: https://reviews.freebsd.org/D50599
show more ...
mail: Add test cases for SIGHUP.MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D50296
mail: Further refine the SIGINT test.* Wait at least 1-2 s before sending the second SIGINT.* If the child is still running after 15 s, send a SIGKILL.* Improve the exit status checks.Fixes: 5
mail: Further refine the SIGINT test.* Wait at least 1-2 s before sending the second SIGINT.* If the child is still running after 15 s, send a SIGKILL.* Improve the exit status checks.Fixes: 59597032c948MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D50092
mail: Exit non-zero on failure to collect mail.While here, avoid non-portable `pipe2()` in the regression test.Fixes: 59597032c948MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: kevans
mail: Exit non-zero on failure to collect mail.While here, avoid non-portable `pipe2()` in the regression test.Fixes: 59597032c948MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D50069
mail: Don't trap signals we shouldn't.When in interactive mode, trap SIGINT, SIGHUP, and tty-related signals.Otherwise, leave signals untouched as required by POSIX.MFC after: 1 weekSponsored b
mail: Don't trap signals we shouldn't.When in interactive mode, trap SIGINT, SIGHUP, and tty-related signals.Otherwise, leave signals untouched as required by POSIX.MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D50011