From e936af86df5ab09b1dead81a31d5ceb7c01576dd Mon Sep 17 00:00:00 2001 From: Damien Zammit via Bug reports for the GNU Hurd Date: Sun, 10 Nov 2024 08:42:02 +0000 Subject: acpi, libmachdev: Add _forever variant of trivfs server loop The acpi server needs to survive after the shutdown notification, so it can serve S_acpi_sleep() RPC to actually shut down the machine. Therefore we need to keep the server alive and not respond to the trivfs goaway request. Message-ID: <20241110084135.3859485-2-damien@zamaudio.com> --- acpi/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'acpi/main.c') diff --git a/acpi/main.c b/acpi/main.c index aa153bdb..18f0afc5 100644 --- a/acpi/main.c +++ b/acpi/main.c @@ -235,9 +235,9 @@ main (int argc, char **argv) if (next_task != MACH_PORT_NULL) { - err = pthread_create (&mt, NULL, machdev_trivfs_server_loop, NULL); + err = pthread_create (&mt, NULL, machdev_trivfs_server_loop_forever, NULL); if (err) - error(1, err, "creating machdev_trivfs_server_loop thread"); + error(1, err, "creating machdev_trivfs_server_loop_forever thread"); pthread_detach (mt); } -- cgit v1.2.3