diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-03-06 15:21:06 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-03-06 15:21:06 +0000 |
commit | d6cecf1ec37ed7585ab70bd48432a400cb97d067 (patch) | |
tree | 0acf0407f3fa5ef041e91cb9b0c12b2dfeaa6e15 /usr.sbin | |
parent | 6743193d5a25979dc8b8e72f966e14fc229a45f3 (diff) |
failure to connect to apmd socket -- get status from the /dev/apm directly
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/apm/apm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c index 270b2449e63..a9e46f8879d 100644 --- a/usr.sbin/apm/apm.c +++ b/usr.sbin/apm/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.18 2006/02/26 17:59:07 jmc Exp $ */ +/* $OpenBSD: apm.c,v 1.19 2006/03/06 15:21:05 mickey Exp $ */ /* * Copyright (c) 1996 John T. Kohl @@ -128,7 +128,7 @@ open_socket(const char *sockname) errr = errno; close(sock); errno = errr; - err(1, "cannot open connection to APM daemon"); + sock = -1; } return (sock); } |