Hi Tuomas, hi BTS! Tuomas Jormola wrote (13 Jan 2009 12:56:44 GMT) : >> Seems fine to me at the first glance, but... have you checked how >> other programs do so? I bet there is a robust, long-time used piece >> of code somewhere that does exactly this and takes care of the >> usual weird corner case. > In shell, I guess you're pretty much limited to use what ever > commands you have at your disposal. ps is the utility to get > information about running processes, so I don't see there's lots of > other options...
I'm neither specifically suggesting you to use something other than ps, nor implicitely saying your code is wrong. I'm pretty sure it does the Right Thing in most cases. I'm sorry if my wording sounded harsh or vexating to you. The thing is, brand new code trying to solve a classic problem often works right in *most* cases, whereas older, largely used pieces of code often have been fixed over time to take care of the tricky case one almost never thinks of when writing new implementations. Bye, -- intrigeri <intrig...@boum.org> | gnupg key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc | We're dreaming of something else. | Something more clandestine, something happier. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org