kdeinit4's process name

John Tapsell johnflux at gmail.com
Tue Jan 20 10:57:20 GMT 2009


2009/1/20 Thiago Macieira <thiago at kde.org>:
> Em Terça-feira 20 Janeiro 2009, às 02:28:56, David Faure escreveu:
>> On Tuesday 20 January 2009, John Tapsell wrote:
>> > Is there a particular reason for the whole "Running..." thing?
>>
>> Yes, because there are so many other processes called "kdeinit4", which are
>> simply spinoffs of kdeinit4.  "kdeinit4: kio_http", "kdeinit4: konqueror"
>> etc. This one has to be recognizable as the "master" kdeinit4, running and
>> waiting for orders.
>
> I thought the other processes were "kio_http [kdeinit]", so that we could do
> "killall kio_http".
>
> $ COLUMNS=75 ps axf | grep kdeinit4
> 11198 ?        Ss     0:00 kdeinit4: kdeinit4 Running...
> 11667 ?        S      0:00  \_ kdeinit4: kio_file [kdeinit] file local:/tmp
> 12142 ?        S      0:00  \_ kdeinit4: kio_trash [kdeinit] trash local:/t
> 12143 ?        S      0:00  \_ kdeinit4: kio_desktop [kdeinit] desktop loca
> 12650 ?        S      0:04  \_ kdeinit4: kio_imap4 [kdeinit] imaps local:/t
> 12892 ?        S      0:18  \_ kdeinit4: kio_imap4 [kdeinit] imap local:/tm
> 12893 ?        S      0:24  \_ kdeinit4: kio_imap4 [kdeinit] imap local:/tm
> 12894 ?        S      0:55  \_ kdeinit4: kio_imap4 [kdeinit] imap local:/tm
> 30976 ?        S      0:02  \_ kdeinit4: kio_file [kdeinit] file local:/tmp
> 16567 ?        S      0:10  \_ kdeinit4: kio_imap4 [kdeinit] imap local:/tm
> 17461 ?        S      0:00  \_ kdeinit4: kio_smtp [kdeinit] smtp local:/tmp
> 18161 pts/3    S+     0:00  |   \_ grep --color kdeinit4
>
> $ pidof kdeinit4
> 11198
>
> $ pidof kio_file
> 30976 11667
>
> (How pidof and killall know to read the second argument, I have no clue)

pidof and killall look at the process name first, and the command line second.
The process name of kio_file is 'kio_file'.  The command line of
kio_file is 'kdeinit4: kio_file [kdeinit] file local:/tmp'

(see:  cat /proc/$(pidof kio_file)/status  and compare against
/proc/$(pidof kio_file)/cmdline)



John




More information about the kde-core-devel mailing list