Package: coreutils
Version: 9.1-1
Version: 9.4-3
Severity: normal

Dear Maintainer,

POSIX.1-2024, XCU, timeout, ASYNCHRONOUS EVENTS:
117587  If the signal specified with the −s option, or any signal whose default 
action is to terminate
117588  the process, is delivered to the timeout utility, then unless the 
signal is SIGKILL or
117589  SIGSTOP, the timeout utility shall immediately send the same signal to 
the process or
117590  processes to which it would send a signal when the time limit is 
reached. If the delivered
117591  signal is SIGALRM, timeout may behave as if the time limit had been 
reached instead of
117592  sending SIGALRM.

And yet:
  $ /bin/timeout -v 1 env -I SYS sleep 20 &
  [2] 2588815
  $ kill -SYS $!
  $
  [2]-  Bad system call         /bin/timeout -v 1 env -I SYS sleep 20

A correct session looks like:
  $ timeout 1 env -I SYS sleep 20 &
  [2] 2588094
  $ kill -SYS $!
  timeout: env (group): sending SIGSYS
  $ timeout: env (group): sending SIGTERM
  [2]-  Exit 124                out/cmd/timeout 1 env -I SYS sleep 20
  $

Best,

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: amd64, i386

Kernel: Linux 6.5.0-3-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FORCED_MODULE, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
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.2-1
ii  libattr1              1:2.5.2-1
ii  libc6                 2.38-13
ii  libgmp10              2:6.3.0+dfsg-2
ii  libselinux1           3.5-2
ii  libssl3t64 [libssl3]  3.1.5-1.1

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to