aboutsummaryrefslogtreecommitdiff
path: root/acpi
diff options
context:
space:
mode:
authorDamien Zammit via Bug reports for the GNU Hurd <bug-hurd@gnu.org>2024-11-10 08:42:02 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-11-10 11:03:32 +0100
commite936af86df5ab09b1dead81a31d5ceb7c01576dd (patch)
tree90dd8680858cd7f81ce69ebec2278e646e609803 /acpi
parent9e943599f1b16cc7c60628c504f082f7de6c6449 (diff)
downloadhurd-e936af86df5ab09b1dead81a31d5ceb7c01576dd.tar.gz
hurd-e936af86df5ab09b1dead81a31d5ceb7c01576dd.tar.bz2
hurd-e936af86df5ab09b1dead81a31d5ceb7c01576dd.zip
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>
Diffstat (limited to 'acpi')
-rw-r--r--acpi/main.c4
1 files changed, 2 insertions, 2 deletions
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);
}