Skip to main content
14 events
when toggle format what by license comment
May 5, 2020 at 17:25 history edited Allan CC BY-SA 4.0
Fixed typo
May 5, 2020 at 9:56 comment added nathancahill blog.codinghorror.com/die-you-gravy-sucking-pig-dog
May 4, 2020 at 20:30 comment added jtbandes I think it's worth mentioning that (to my knowledge) most Cocoa apps don't handle SIGTERM the same way they do a Quit command, so it's possible some state/data would be lost if an application was holding it in memory. (However, autosaving has become quite common, and apps have been encouraged to support Automatic Termination and Sudden Termination for a long time.)
May 4, 2020 at 20:26 comment added jtbandes 🤔 Strange stuff in this old source code... void die_you_gravy_sucking_pig_dog(void);
May 4, 2020 at 14:47 comment added Program man Reboot flushes to disk, so you may lose unsaved changes, but it's impossible to get filesystem corruption.
May 4, 2020 at 13:16 comment added nonopolarity @user151019 actually, if the app is killed in the middle, I'd consider it somewhat hurting the computer. What if I highlighted a few lines in a PDF ebook file using Preview, and (1) Preview has not written it to the hard drive? (2) What if it had written half of it to the hard drive but half is not written? Maybe the journaled file system will "save the day" for (2) because the file won't be corrupted as the file system will consider nothing is written at all? But for (1) or (2) there is lost of work (the highlightings)
May 4, 2020 at 11:25 comment added mmmmmm @DarkHeart Yes sorry you are correct (I misread a !)
May 4, 2020 at 11:21 comment added user44764 @user151019 - I think you have that the wrong way around. My point it that you’d want launchd to do its thing instead of just indiscriminately killing all processes.
May 4, 2020 at 11:16 comment added mmmmmm @DarkHeart Looking at shutdown's code opensource.apple.com/source/system_cmds/system_cmds-854.40.2/… I think shutdown just calls reboot and so behaves the same unless -o is passed where launchd does the process
May 4, 2020 at 11:01 comment added mmmmmm @nonopolarity correct but that is another question
May 4, 2020 at 9:17 comment added nonopolarity typing reboot in the terminal doesn't seem to include the steps that gracefully shut down the apps
May 4, 2020 at 6:45 comment added user44764 This is not the same as the shutdown command which will stop services in order
May 3, 2020 at 19:21 history edited Allan CC BY-SA 4.0
Added info from man page
May 3, 2020 at 19:14 history answered Allan CC BY-SA 4.0