Bug#914494: sysvinit-utils: pidof behavior changed with omit option -o

Jesse Smith jessefrgsmith at yahoo.ca
Fri Nov 23 21:55:18 GMT 2018


I can confirm this bugs exists. It was introduced in the 2.92 version of
pidof by way of a typo. The parameter passed to -o is ignored.

A patch is attached which corrects the behaviour.

My suggestion is for this patch to be applied in the Debian package
against 2.92 (which was just released) and it'll be fixed upstream in
the 2.93 release at some point in the future.

Jesse




On 11/23/18 5:26 PM, Alex Andreotti wrote:
> Package: sysvinit-utils
> Version: 2.92~beta-1
> Severity: normal
> 
> Dear Maintainer,
> 
>   * What led up to the situation?
> 
> I'm using a script that when start kills all the script with the same name but itself,
> the syntax was:
> 
> pidof -o $$ -x script.sh
> 
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
> 
> I did an apt upgrade today that installed sysvinit-utils_2.92~beta-1_amd64, my older version
> in /var/cache/apt/archives was sysvinit-utils_2.88dsf-59.11_amd64 (Oct 14), the behavior
> change should be in between.
> 
> If I use a shell `sh script.sh` or `zsh script.sh` it works, but `./script.sh` directly doesn't,
> my /bin/sh link to dash, I don't think is relevant...
> 
> As a work around I use a for loop and compare with $$.
> 
> 
> -- System Information:
> Debian Release: buster/sid
>   APT prefers unstable-debug
>   APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages sysvinit-utils depends on:
> ii  init-system-helpers  1.56
> ii  libc6                2.27-8
> ii  util-linux           2.32.1-0.2
> 
> sysvinit-utils recommends no packages.
> 
> sysvinit-utils suggests no packages.
> 
> -- no debconf information
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pidof-omit.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20181123/5d938a96/attachment-0001.bin>


More information about the Debian-init-diversity mailing list