From d6cecf1ec37ed7585ab70bd48432a400cb97d067 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 6 Mar 2006 15:21:06 +0000 Subject: failure to connect to apmd socket -- get status from the /dev/apm directly --- usr.sbin/apm/apm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/apm/apm.c') 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); } -- cgit v1.2.3