Skip to content

Child foreground niceness sometimes not applied #93

Open
@jacobgkau

Description

Steps to reproduce:

  • Fresh boot/login
  • Open a terminal, run top, open Firefox and Nautilus
  • Observe in top that the foreground/background nicenesses work when switching between Firefox and Nautilus
  • Switch focus to the first terminal, then open a second terminal
  • Run stress -c 1
  • Observe that stress (and sometimes top) have the background niceness of 6, even though the terminal with stress is focused.
  • Switch focus away from the terminal and back; the niceness of stress switches to 0.

Screenshot from 2023-05-01 13-05-54

This may occur more often if stress is run very quickly after switching focus to the terminal(s). However, it's not just a delay before the foreground niceness is applied; it's never applied until another focus switch when this issue occurs.

This is not caused by or fixed by #92.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions