Sometimes, I surprise even myself.

First, do no harm.

Damned zombie python processes…

Written in

by


If you’re running Mac OS X, and you’ve installed XCode, try this:

open up a Terminal window, and type
ps -x |grep -i python

Do you see dozens and dozens of processes named (python)? Then you’ll probably be interested in the discussion here.

This turns out to be due to a bug in XCode 2.3’s distributed builds functionality. There’s this sctwistd process that gets launched at startup, and every time you log in and out (even switching to another user counts), it spawns off a couple of python processes that get orphaned from their parent. These zombies accumulate over time, eventually leaving your Mac unable to launch any more programs.

Long story short, if you don’t use dedicated network builders and you don’t want to fill up your process table with Zombie Python Processes from Hell, perform these commands in a Terminal window, then reboot:

cd /System/Library/LaunchDaemons
sudo launchctl unload -w com.apple.dnbobserver.plist

Now if I can just figure out why Nikon View Monitor is being launched, even though I don’t even use Nikon View anymore, I’ll be a happy camper. I just don’t like running software that I don’t need.

Tags

6 responses to “Damned zombie python processes…”

  1. Yvette Avatar

    What a kindly, helpful person you are. Wanna Marry Me?-The Wife

    Like

  2. Anonymous Avatar
    Anonymous

    might want to grep Python instead of python, depending on your install…

    Like

  3. Mark Bessey Avatar

    Thanks for the suggestion. I changed the grep command to use the -i option, which should get any possible capitalization of \”python\”

    Like

  4. Anonymous Avatar
    Anonymous

    You can get rid of the Nikon View Monitor by removing it\’s entry from/Library/Preferences/loginwindow.plist or by removing/renaming the file if nothing else is in there.Cheers,Peter.

    Like

  5. Anonymous Avatar
    Anonymous

    You can get rid of the Nikon View Monitor by removing it\’s entry from/Library/Preferences/loginwindow.plist or by removing/renaming the file if nothing else is in there.Cheers,Peter.

    Like

  6. wow power leveling Avatar

    This comment has been removed by a blog administrator.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: