aboutsummaryrefslogtreecommitdiff
path: root/shutdown
Commit message (Collapse)AuthorAgeFilesLines
* Add a description comment for the MIG type translation filesZhaoming Luo2024-12-141-0/+2
| | | | | Signed-off-by: Zhaoming Luo <zhmingluo@163.com> Message-ID: <20241213005831.748151-1-zhmingluo@163.com>
* shutdown: Try mach device acpi before /servers/acpiDamien Zammit via Bug reports for the GNU Hurd2024-11-101-1/+21
| | | | | | | | Since libmachdev cannot currently serve netfs as well as trivfs on a path, we need to allow connecting to the bootstrapped acpi server to shut down the machine. Message-ID: <20241110084135.3859485-3-damien@zamaudio.com>
* shutdown: Use new acpi RPC to halt machine, clean upDamien Zammit2022-09-124-88/+14
| | | | | | | This allows clean shutdown of all modern x86 machines (not just qemu) by using the acpi translator to call into libacpica code. Message-Id: <20220912103837.556815-3-damien@zamaudio.com>
* shutdown: Use fprintf instead of mach_printSamuel Thibault2019-05-051-2/+2
| | | | | * shutdown/acpi_shutdown.c (disappear_via_acpi): Use fprintf instead of mach_print.
* shutdown: Fix static linkSamuel Thibault2019-04-211-0/+1
| | | | * shutdown/Makefile (LDLIBS): Add -lpthread.
* shutdown: Fix static linkSamuel Thibault2019-04-211-1/+1
| | | | * shutdown/Makefile (HURDLIBS): Add fshelp.
* shutdown: Fix static linkSamuel Thibault2019-04-211-1/+1
| | | | * shutdown/Makefile (HURDLIBS): Add iohelp ihash.
* shutdown: rename shutdown RPC to shutdown_shutdownSamuel Thibault2019-03-031-1/+1
| | | | | | | | | For coherency with usage, and to avoid conflicting with shutdown(2) * hurd/shutdown.defs (shutdown): Rename to shutdown_shutdown. * shutdown/shutdown.c (S_shutdown): Rename to S_shutdown_shutdown. * startup/startup.c (do_shutdown): Call shutdown_shutdown instead of shutdown.
* shutdown: clean up debugging piecesSamuel Thibault2019-03-032-5/+6
| | | | | | | * shutdown/acpi_shutdown.c (disappear_via_acpi): Call ioperm only on required ports, not all ports. * shutdown/shutdown.c (S_shutdown, main): Remove debugging messages, even if joyful :)
* Add shutdown RPC && ACPI specific disappear routineDamien Zammit2019-03-025-0/+269
* Makefile (prog-subdirs): Add shutdown. * hurd/hurd_types.defs (shutdown_t): New type. * hurd/hurd_types.h (shutdown_t): New type. * hurd/shutdown.defs: New file. * shutdown: New directory.