Last night our power went out, I have my iMac connected to a UPS and the Mac system settings set to shut down the Mac when the UPS gets low. After a few hours I decided to shut it down myself and there were a couple of files--a PDF and maybe a Word orExcel doc--that I hadn't saved changes so it asked me if I wanted to save changes.
What would of happened if the UPS had shut down the computer? Would it have gotten stuck on those programs and not shut down or would the system software give up after a couple minutes and shut down without closing those programs?
Last night our power went out, I have my iMac connected to a UPS and the Mac system settings set to shut down the Mac when the UPS gets low. After a few hours I decided to shut it down myself and there were a couple of files--a PDF
and maybe a Word or Excel doc--that I hadn't saved changes so it asked me if I
wanted to save changes.
What would of happened if the UPS had shut down the computer? Would it have gotten stuck on those programs and not shut down or would the system software give up after a couple minutes and shut down without closing those programs?
On Sep 29, 2023 at 10:53:58 AM PDT, "Connor Shannon" <cshannon1898@gmail.com> wrote:
Last night our power went out, I have my iMac connected to a UPS and the Mac >> system settings set to shut down the Mac when the UPS gets low. After a few >> hours I decided to shut it down myself and there were a couple of files--a PDF
and maybe a Word or Excel doc--that I hadn't saved changes so it asked me if I
wanted to save changes.
What would of happened if the UPS had shut down the computer? Would it have >> gotten stuck on those programs and not shut down or would the system software
give up after a couple minutes and shut down without closing those programs?
In my experience, when you hit the big red button or pull a power plug, a computer (or a stove) will power down. Yes, I have an older Mac that takes a long time to orderly shut down. BUT when there's no more power, a Mac "in the process" of shutting down will power off without closing programs.
Last night our power went out, I have my iMac connected to a UPS and the Mac system settings set to shut down the Mac when the UPS gets low. After a few hours I decided to shut it down myself and there were a couple of files--a PDF and maybe a Word orExcel doc--that I hadn't saved changes so it asked me if I wanted to save changes.
What would of happened if the UPS had shut down the computer? Would it have gotten stuck on those programs and not shut down or would the system software give up after a couple minutes and shut down without closing those programs?
Last night our power went out, I have my iMac connected to a UPS and the Mac system settings set to shut down the Mac when the UPS gets low. After a few hours I decided to shut it down myself and there were a couple of files--a PDF and maybe a Word orExcel doc--that I hadn't saved changes so it asked me if I wanted to save changes.
What would of happened if the UPS had shut down the computer? Would it have gotten stuck on those programs and not shut down or would the system software give up after a couple minutes and shut down without closing those programs?
The software is in MacOS it doesn't matter what kind of UPS it is. System settings, Energy saver, UPS options. I have it set to close down when the UPS gets down to 10%. So it won't be any kind of sudden shutdown. MacOS will close
the open programs. I just don't know what happens if it can't close a pgm b'cuz something wasn't saved. If it was important to save I would of saved it but sometimes like the other night I'd made a little comment on a PDF so it wouldn't close till I said whether to save it. No big deal but will it stop the shutdown and then stay on until the UPS dies?
So does the Mac skip that program and close the others or does it just give up
and shut down suddenly or does it not shut down at all?
The software is in MacOS it doesn't matter what kind of UPS it is. System settings, Energy saver, UPS options. I have it set to close down when the UPS gets down to 10%. So it won't be any kind of sudden shutdown. MacOS will close the open programs. Ijust don't know what happens if it can't close a pgm b'cuz something wasn't saved. If it was important to save I would of saved it but sometimes like the other night I'd made a little comment on a PDF so it wouldn't close till I said whether to save it.
So does the Mac skip that program and close the others or does it just give up and shut down suddenly or does it not shut down at all?
On Sep 30, 2023 at 11:12:21 AM PDT, "Connor Shannon" <cshannon1898@gmail.com> wrote:
The software is in MacOS it doesn't matter what kind of UPS it is. System
settings, Energy saver, UPS options. I have it set to close down when the UPS
gets down to 10%. So it won't be any kind of sudden shutdown. MacOS will close
the open programs. I just don't know what happens if it can't close a pgm
b'cuz something wasn't saved. If it was important to save I would of saved it
but sometimes like the other night I'd made a little comment on a PDF so it >> wouldn't close till I said whether to save it. No big deal but will it stop >> the shutdown and then stay on until the UPS dies?
So does the Mac skip that program and close the others or does it just give up
and shut down suddenly or does it not shut down at all?
AFAIK, the mechanism for shutting down programs, the FORCE QUIT option, in the
Finder, would probably use the UNIX KILL -9 signal to do that. Any process that catches this signal will terminate with extereme prejudice. I doubt the UPS program uses just the plain KILL signal. Many programs can setup exceptions to that and ignore it. That's up the developer of the program.
You could test this by running software you normally do and in the command line use the "kill <process id>" and see if it exits or ignores it, like Word throwing up a File Save dialog rather than quiting.
The "kill -9 <process id>" Unix command can only be blocked if the process is doing I/O, e.g. writing to disk or a network socket. In that case, if the I/O completes before the big Red Button, the process will exit w/o saving anything. If power drops, same thing. That's when you'll need your snapshot backup if the file is corrupted.
Okay thanks every body. I'm good about saving things a lot and yes I do have Time machine so I wouldn't loose much if this happened I just wondered what would happen if the Mac couldn't close a program. Maybe like Percival says it would force quit ormaybe everything would just sit there until the power runs out.
On 2023-09-30 14:12, Connor Shannon wrote:I just don't know what happens if it can't close a pgm b'cuz something wasn't saved. If it was important to save I would of saved it but sometimes like the other night I'd made a little comment on a PDF so it wouldn't close till I said whether to save it.
The software is in MacOS it doesn't matter what kind of UPS it is. System settings, Energy saver, UPS options. I have it set to close down when the UPS gets down to 10%. So it won't be any kind of sudden shutdown. MacOS will close the open programs.
So does the Mac skip that program and close the others or does it just give up and shut down suddenly or does it not shut down at all?
My recollection of it is that the Mac would shut down. Maybe save the
state of the open-file-program so the work before saving the file is
also conserved.
MS Office products (Excel, Word, etc.) make a backup of WIP every 10
minutes or so you're fairly safe there UPS or not.
Alan Browne <bitbucket@blackhole.com> wrote:
On 2023-09-30 14:12, Connor Shannon wrote:
The software is in MacOS it doesn't matter what kind of UPS it is. System >>> settings, Energy saver, UPS options. I have it set to close down when the >>> UPS gets down to 10%. So it won't be any kind of sudden shutdown. MacOS will
close the open programs. I just don't know what happens if it can't close a >>> pgm b'cuz something wasn't saved. If it was important to save I would of >>> saved it but sometimes like the other night I'd made a little comment on a >>> PDF so it wouldn't close till I said whether to save it. No big deal but >>> will it stop the shutdown and then stay on until the UPS dies?
So does the Mac skip that program and close the others or does it just give >>> up and shut down suddenly or does it not shut down at all?
My recollection of it is that the Mac would shut down. Maybe save the
state of the open-file-program so the work before saving the file is
also conserved.
MS Office products (Excel, Word, etc.) make a backup of WIP every 10
minutes or so you're fairly safe there UPS or not.
I hope it doesn't save during shut down to cause corruptions!
Connor Shannon <cshannon1898@gmail.com> wrote:
Okay thanks every body. I'm good about saving things a lot and yes I
do have Time machine so I wouldn't loose much if this happened I just
wondered what would happen if the Mac couldn't close a program. Maybe
like Percival says it would force quit or maybe everything would just
sit there until the power runs out.
I wonder what happens if TM was running during this shutdown. :O
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 51:41:21 |
Calls: | 9,566 |
Files: | 13,660 |
Messages: | 6,142,489 |