summaryrefslogtreecommitdiff
path: root/etc/daily
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-06-10 11:28:31 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-06-10 11:28:31 +0000
commit1a3f207c329b2ffd60a99ac8deeec30ce77e630d (patch)
tree1de199cf410d97cb64fb96c3e52966e0ac470eff /etc/daily
parentd5a4d2873d4158c8a8a9301d48083a9982b0829c (diff)
Report processes that were killed due to pledge or memory access
violations in the daily mail. OK millert@ jmc@
Diffstat (limited to 'etc/daily')
-rw-r--r--etc/daily3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/daily b/etc/daily
index 9a299e34e7e..8d80fa0ccb2 100644
--- a/etc/daily
+++ b/etc/daily
@@ -1,5 +1,5 @@
#
-# $OpenBSD: daily,v 1.88 2016/04/29 13:05:33 schwarze Exp $
+# $OpenBSD: daily,v 1.89 2017/06/10 11:28:30 bluhm Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
# For local additions, create the file /etc/daily.local.
@@ -71,6 +71,7 @@ if [ -f /var/account/acct ]; then
mv -f /var/account/acct.0 /var/account/acct.1
cp -f /var/account/acct /var/account/acct.0
sa -sq
+ lastcomm -f /var/account/acct.0 | grep -e ' -[A-Z]*[PT]'
fi
# If ROOTBACKUP is set to 1 in the environment, and