diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-05-15 22:46:01 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-05-15 22:46:01 +0000 |
commit | cfd6bfe7193d6d95e8ce3e2a98ca29537a900422 (patch) | |
tree | f5c213a99ea07d62f93ae239253b2101f34a4451 /usr.sbin/apmd | |
parent | 76df7d9ce5fd6a724b5ca71e312f7963385b43ad (diff) |
If execing an /etc/apm/* program fails, log the failure and error message.
ok tedu@ kettenis@
Diffstat (limited to 'usr.sbin/apmd')
-rw-r--r-- | usr.sbin/apmd/apmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c index 1c157584ff1..9895fe75770 100644 --- a/usr.sbin/apmd/apmd.c +++ b/usr.sbin/apmd/apmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmd.c,v 1.59 2013/04/29 00:28:23 okan Exp $ */ +/* $OpenBSD: apmd.c,v 1.60 2013/05/15 22:46:00 guenther Exp $ */ /* * Copyright (c) 1995, 1996 John T. Kohl @@ -782,6 +782,7 @@ do_etc_file(const char *file) case 0: /* We are the child. */ execl(file, prog, (char *)NULL); + syslog(LOG_ERR, "failed to exec %s: %m", file); _exit(1); /* NOTREACHED */ default: |