Package: procps
Version: 2:3.3.15-2
Severity: normal

snice has no effect on process priority anymore, neither when invoked with the 
process
name, nor with a user name.

With version 3.3.9 it worked fine. I did not test versions in-between.

Running a process of:

  sleep 3600

And doing:

  snice +20 sleep

Results in the following strace snippet for 3.3.15:

  openat(AT_FDCWD, "/proc/7135/stat", O_RDONLY) = 4
  fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
  read(4, "7135 (sleep) S 6836 7135 6836 34"..., 128) = 128
  close(4)

Downgrading to 3.3.9 and repeating:

  openat(AT_FDCWD, "/proc/7135/stat", O_RDONLY) = 4
  fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
  read(4, "7135 (sleep) S 6836 7135 6836 34"..., 128) = 128
  openat(AT_FDCWD, "/proc/tty/drivers", O_RDONLY) = 5
  read(5, "/dev/tty             /dev/tty   "..., 9999) = 465
  close(5)                                = 0
  stat("/dev/pts2", 0x7fff202e0460)       = -1 ENOENT (No such file or 
directory)
  stat("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
  readlink("/proc/7135/fd/2", "/dev/pts/2", 127) = 10
  stat("/dev/pts/2", {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0x2), ...}) = 0
  setpriority(PRIO_PROCESS, 7135, 20)     = 0
  close(4)

-- 
With respect,
Roman

Reply via email to