MP3 jukebox for RH62 Linux
Mike F Miller
mikem at ichips.intel.com
Thu Sep 7 16:47:01 EDT 2000
More information about the Python-list mailing list
Thu Sep 7 16:47:01 EDT 2000
- Previous message (by thread): Python 2.0b1 documentation : lib.pdf is corrupted
- Next message (by thread): Python 2.0b1 performance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Will Ware wrote: > #!/usr/bin/python > """MP3 Jukebox, runs on Red Hat 6.2 systems""" Thanks, I was thinking of doing something like this, but just hadn't bothered doing it yet. I might suggest a slight change from: if pid == eval(x[0]) and x[2] == 'S': to if pid == eval(x[0]) and x[2] != 'Z': Since the child may or may not be considered 'sleeping' by the os at the time the `ps` command is called (could be 'R'unning), but you do want to ignore the zombie processes. Anybody want to post the solution to properly releasing the mpg123 processes so they don't constantly go Zombie? I realize that you could `kill` them, but I'm thinking there ought to be a more elegant solution... - Mike Miller "Save the whales. Feed the hungry. Free the mallocs." mikem at ichips.intel.com 0x2A http://members.xoom.com/Mikem42
- Previous message (by thread): Python 2.0b1 documentation : lib.pdf is corrupted
- Next message (by thread): Python 2.0b1 performance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list