Package: procps
Version: 2:3.3.16-5
Severity: normal

It appears watch programs reacts to some signals in undocumented manner.

On receving SIGWINCH (terminal size change) it reexecutes the command and
redraws. That might be problematic, as sometimes watch is to trigger
periodic events, and resizing a window will send big number of signal in
quick succession as the size is changing when the user moves the mouse.


I think using SIGUSR1 (like dd) or SIGINFO (like most bsd tools), could
be a better option.

Or only rerun the command if the window is resized to be bigger than the
current size?




-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-1-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages procps depends on:
ii  init-system-helpers  1.57
ii  libc6                2.30-8
ii  libncurses6          6.2-1
ii  libncursesw6         6.2-1
ii  libprocps8           2:3.3.16-5
ii  libtinfo6            6.2-1
ii  lsb-base             11.1.0

Versions of packages procps recommends:
ii  psmisc  23.3-1

procps suggests no packages.

-- no debconf information

Reply via email to