Bug#1033311: sysvinit-utils: pidof not always returning a pid when using the full path to a program

Markus Fischer ivanhoe at fiscari.de
Thu Mar 23 15:04:45 GMT 2023


I could also reproduce it with emacs. I've used emacs-gtk to avoid the 
symlink.

```shell 1
$ emacs-gtk -nw -fn helvetica
```

```shell 2
$ ./pidof emacs-gtk
24727
$ ./pidof $(which emacs-gtk)
$ ls -l $(which emacs-gtk)
-rwxr-xr-x 1 root root 5294300 Mar 14 21:30 /usr/bin/emacs-gtk
```

Am 23.03.23 um 15:50 schrieb Jesse Smith:
> On 2023-03-23 11:36 a.m., Markus Fischer wrote:
>> Alright. Then there is still the issue with gdb, which is no symlink.
>> A full example for that:
>>
>> ```shell 1
>>
>> $ type gdb
>> gdb is /usr/bin/gdb
>> $ gdb --core=corefile
>>
>> ```
>>
>> ```shell 2
>>
>> $ ./pidof gdb
>> 23125
>> $ ./pidof $(which gdb)
>> $ ls -l $(which gdb)
>> -rwxr-xr-x 1 root root 9904496 Feb 24 22:58 /usr/bin/gdb
>>
> 
> 
> This one I have not been able to duplicate. Does it happen with any
> other programs which accept arguments or just gdb?
> 



More information about the Debian-init-diversity mailing list