[Bug 251619] sysutils/battmond: battmond dies after first suspend
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Dec 5 21:29:51 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251619
dirtystickyfloor at web.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #220293|0 |1
is patch| |
--- Comment #1 from dirtystickyfloor at web.de ---
Comment on attachment 220293
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=220293
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);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list