Date: Tue, 30 Jan 2024 08:12:23 -0800 From: David Wolfskill <david@catwhisker.org> To: Gary Jennejohn <garyj@gmx.de> Cc: current@freebsd.org, Tomek CEDRO <tomek@cedro.info> Subject: Re: 'poweroff' seems to (only) halt as of main-n267841-0b3f9e435f2b Message-ID: <Zbkf5_q-c6EvNXMs@albert.catwhisker.org> In-Reply-To: <20240130164954.65b784f4@ernst.home> References: <ZbkMfIdaNTddzlqu@albert.catwhisker.org> <CAFYkXjmwDMZU=i9E=mKmz%2BbjBje2e=X=2eDhAnsiBs9F%2BDvNjg@mail.gmail.com> <ZbkRdaGt1c2-0yS7@albert.catwhisker.org> <20240130164954.65b784f4@ernst.home>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Tue, Jan 30, 2024 at 03:49:54PM +0000, Gary Jennejohn wrote:
> ...
> I use 'shutdown -p now' and it's never failed to power down my computers.
> ....
I could say the same about "poweroff", up to the main-n267808-197944948e62
-> main-n267841-0b3f9e435f2b transition. And I probably wouldn't
have mentioned anything, except that each of the 3 machines (one
headless build machine; 2 laptops) I tested exhibited the same change.
Note, too, from src/sbin/shutdown/shutdown.c:
/*
* Test for the special case where the utility is called as
* "poweroff", for which it runs 'shutdown -p now'.
*/
if ((p = strrchr(argv[0], '/')) == NULL)
p = argv[0];
else
++p;
if (strcmp(p, "poweroff") == 0) {
if (getopt(argc, argv, "") != -1)
usage((char *)NULL);
argc -= optind;
argv += optind;
if (argc != 0)
usage((char *)NULL);
dopower = 1;
offset = 0;
(void)time(&shuttime);
goto poweroff;
(So I believe we are referring to the same code paths, whether by
"shutdown -p now" or "poweroff".)
Peace,
david
--
David H. Wolfskill david@catwhisker.org
Do these ends really justify those means?
See https://www.catwhisker.org/~david/publickey.gpg for my public key.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
iNUEARYKAH0WIQSTLzOSbomIK53fjFliipiWhXYx5QUCZbkf518UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0OTMy
RjMzOTI2RTg5ODgyQjlEREY4QzU5NjI4QTk4OTY4NTc2MzFFNQAKCRBiipiWhXYx
5SZ3AP9vdL5wjPYxxxYfSrGv5fJjKBcO5MoD3sz1dOi/EOdKoQD/a8sg+9GGoESq
yjtL3e+VQlHAZY2uT071K8ipfZEdGgk=
=hM3w
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Zbkf5_q-c6EvNXMs>
