Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Dec 2020 21:29:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 251619] sysutils/battmond: battmond dies after first suspend
Message-ID:  <bug-251619-7788-suQyn3jB53@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-251619-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-251619-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251619

dirtystickyfloor@web.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #220293|0                           |1
           is patch|                            |

--- Comment #1 from dirtystickyfloor@web.de ---
Comment on attachment 220293
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D220293
proposed patch

>--- battmond.c.orig	2020-12-05 20:19:13 UTC
>+++ battmond.c
>@@ -194,8 +194,7 @@ int main(int argc, char ** argv)
> 				if (dosuspend) { // Suspend
> 					syslog(LOG_EMERG, BATT_SUSP);
> 					close(acpifd);
>-					execl("/usr/sbin/acpiconf", "acpiconf", "-s3", NULL);
>-					oops("execl");
>+					system("/usr/sbin/acpiconf -s3");
> 				} else { // Halt
> 					syslog(LOG_EMERG, BATT_HALT);
> 					close(acpifd);

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251619-7788-suQyn3jB53>