Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wrldwzrd89

macrumors G5
Original poster
Jun 6, 2003
12,110
77
Solon, OH
Found this out the hard way while experimenting with crashing processes on demand in OSX:
Code:
killall -SIGSEGV process_name
If you try doing that to launchd, which is the parent process for EVERYTHING launched from the Finder, you end up in a weird detached state. Cmd+Tab doesn't work, the Finder goes away, and the menu bar goes away, making a lot of things impossible. You can still use apps you have open and type into them, but menu commands don't work normally. Obviously, shutting down the Mac once in this state is a trifle difficult.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,473
289
Holding down the power button for 5 seconds should still work.

What is going on with your Mac that you need to "experiment with crashing processes"....? :eek:
 

wrldwzrd89

macrumors G5
Original poster
Jun 6, 2003
12,110
77
Solon, OH
Holding down the power button for 5 seconds should still work.

What is going on with your Mac that you need to "experiment with crashing processes"....? :eek:
Nothing - I just decided to experiment with the Terminal, and discovered this.
 

Krazy Bill

macrumors 68030
Dec 21, 2011
2,985
3
If you try doing that to launchd, which is the parent process for EVERYTHING launched from the Finder, you end up in a weird detached state. Cmd+Tab doesn't work, the Finder goes away, and the menu bar goes away, making a lot of things impossible.
Well for god's sake man, stop doing that. :eek:
 

ScottishCaptain

macrumors 6502a
Oct 4, 2008
871
474
This is the virtual equivalent of "Ouch that hurt" and "So stop hitting yourself".

You told the kernel a segmentation fault occurred in launchd. The kernel did precisely what it was supposed to do, and killed the offending process. Since launchd happens to be the parent of ALL processes under OS X, that had the intended side effect of taking down your entire system.

This is one of the most absurd threads I've ever read. I have no idea why you're flinging SIGSEGV around, and I don't even want to know because there is absolutely no logical reason behind it other then "I'm bored and wanted to poke critical system processes in an inappropriate way".

And just FYI, launchd didn't "crash". You crashed it on purpose. That's why SIGSEGV exists. Stop throwing wrenches into the gears. If you insist on doing that, don't flood the forum with mindless posts about how "I broke it on purpose and now it's broken".

-SC
 

stiligFox

macrumors 68000
Apr 24, 2009
1,565
1,646
10.0.1.3
Just wanted to add, the real purpose (I'm guessing) for the command would be for a developer to see how their application handles if it crashes.

It's in no way designed for "poking around."
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.