Kyle Evans 6795e26b8a cron(8): use proper variable to determine mailer process status
While the mailer is normally opened/set if the mailto is set, this is not
the case if the grandchild actually didn't produce any output. This change
corrects the situation to only attempt to kill/close the mail process if it
was actually opened in the first place.

The reporter initially stumbled on the -n (suppress mail on success) flag
leading to a SIGKILL of the process group, but simultaneously
discovered/reported the behavior with !-n jobs if MAILTO was set and no
output happened.

All of these places that are checking mailto should actually be checking
whether mail is set, so do that for consistency+correctness.

This set of bugs were introduced by r352668.

Submitted by:	sigsys@gmail.com
Reported by:	sigsys@gmail.com
2019-12-26 22:49:19 +00:00
..
2019-10-19 14:56:44 +00:00
2019-12-11 17:37:53 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-08-11 13:23:09 +00:00
2019-08-13 20:06:55 +00:00
2019-12-02 05:24:16 +00:00
2019-12-11 17:37:53 +00:00
2019-06-09 02:06:31 +00:00
2019-03-14 14:34:36 +00:00
2019-12-04 16:56:11 +00:00
2019-02-04 21:28:25 +00:00
2018-06-06 18:52:33 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2019-05-04 02:09:30 +00:00
2018-01-02 16:50:57 +00:00
2019-12-11 17:37:53 +00:00
2019-08-08 21:08:13 +00:00
2018-10-22 02:34:10 +00:00
2019-09-04 13:47:38 +00:00
2018-05-19 20:57:22 +00:00
2019-12-11 17:37:53 +00:00
2019-12-13 05:54:38 +00:00
2019-05-22 01:22:33 +00:00
2019-02-04 21:28:25 +00:00
2018-06-17 17:31:16 +00:00
2019-12-11 17:37:53 +00:00
2019-03-05 02:53:41 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-04-22 17:52:46 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2018-12-19 22:47:37 +00:00
2019-11-21 01:24:49 +00:00
2019-12-11 17:37:37 +00:00
2019-12-11 17:37:53 +00:00
2017-10-31 00:07:04 +00:00
2019-10-31 21:01:34 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00
2018-07-24 20:20:17 +00:00