Package: coreutils
Version: 9.1-1
Severity: normal

Dear Maintainer,

Quoth tail(1):
       --pid=PID
              with -f, terminate after process ID, PID dies

Discounting the weird phrasing, the functionality is clear,
as is the domain: processes have IDs in [1, system_limit)
([1, kernel.pid_max) under linux).

If tail --pid=-1 were accepted, then one would expect tail --pid=0 to
behave the same way.

But tail --pid=-1 is forbidden
(since by definition no process may have a negative PID),
but tail --pid=0 is allowed and just does nothing, even though it's
precisely the same case as -1?

Best,
наб

-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-9-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coreutils depends on:
ii  libacl1      2.3.1-3
ii  libattr1     1:2.5.1-4
ii  libc6        2.36-9
ii  libgmp10     2:6.2.1+dfsg1-1.1
ii  libselinux1  3.4-1+b6

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to