diff options
author | tedu <tedu@openbsd.org> | 2013-05-19 18:37:40 +0000 |
---|---|---|
committer | tedu <tedu@openbsd.org> | 2013-05-19 18:37:40 +0000 |
commit | a93f0c7790c3e274ea3bd6f04b0dca8c5f1c0c7f (patch) | |
tree | f3ef83e2787e8067347534eba4e59ce126be161e /usr.sbin/apmd | |
parent | Make the cursor position when moving backwards by paragraph behave the (diff) | |
download | wireguard-openbsd-a93f0c7790c3e274ea3bd6f04b0dca8c5f1c0c7f.tar.xz wireguard-openbsd-a93f0c7790c3e274ea3bd6f04b0dca8c5f1c0c7f.zip |
add some messages when entering suspend as well
Diffstat (limited to 'usr.sbin/apmd')
-rw-r--r-- | usr.sbin/apmd/apmd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c index 9895fe75770..c09370d9d54 100644 --- a/usr.sbin/apmd/apmd.c +++ b/usr.sbin/apmd/apmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmd.c,v 1.60 2013/05/15 22:46:00 guenther Exp $ */ +/* $OpenBSD: apmd.c,v 1.61 2013/05/19 18:37:40 tedu Exp $ */ /* * Copyright (c) 1995, 1996 John T. Kohl @@ -476,6 +476,7 @@ handle_client(int sock_fd, int ctl_fd) void suspend(int ctl_fd) { + syslog(LOG_NOTICE, "system suspending"); do_etc_file(_PATH_APM_ETC_SUSPEND); sync(); sleep(1); @@ -485,6 +486,7 @@ suspend(int ctl_fd) void stand_by(int ctl_fd) { + syslog(LOG_NOTICE, "system entering standby"); do_etc_file(_PATH_APM_ETC_STANDBY); sync(); sleep(1); @@ -494,6 +496,7 @@ stand_by(int ctl_fd) void hibernate(int ctl_fd) { + syslog(LOG_NOTICE, "system hibernating"); do_etc_file(_PATH_APM_ETC_HIBERNATE); sync(); sleep(1); @@ -713,7 +716,7 @@ main(int argc, char *argv[]) else if (resumes) { do_etc_file(_PATH_APM_ETC_RESUME); syslog(LOG_NOTICE, - "system resumed from APM sleep"); + "system resumed from sleep"); } if (powerchange) { |