From kde-core-devel Sun Mar 03 20:27:46 2002 From: Charles Samuels Date: Sun, 03 Mar 2002 20:27:46 +0000 To: kde-core-devel Subject: Re: Pid for dcop X-MARC-Message: https://marc.info/?l=kde-core-devel&m=101518741221734 søndag 03 mars 2002, 04:12 am, skrev Martijn Klingens: > On Sunday 03 March 2002 09:06, Charles Samuels wrote: > > I'de like to add a standard dcop function (to the qt object?) to get the > > pid of the process. This is to make kdekillall work on non-linux > > systems. > > Better make 100% sure then that the process is running on the local > machine. Currently kdekillall is based on 'ps' output IIRC, so you can't > possibly kill remote apps. But with using DCOP you might find a remote app > and a pid and then kill off a local process that happens to have the same > pid. > > Or am I overly concerned here? > > > Would this be acceptable? > > If it doesn't have side-effects for Linux you can't possibly make it worse > as kdekillall currently doesn't work if I understand you correctly. So, > yes, fine with me. Well, I _was_ going to add it to the "qt" interface -- but after seeing the code, and playing with it for about 20 minutes.. I've changed my mind :) How about we add a cleaner second interface, like "app" or so, with useful functions like pid(), and anything else any of us can think of? -Charles