Something that doesn't happen every day, an anachronistic feature introduced som...

@brynet@bsd.network

Something that doesn't happen every day, an anachronistic feature introduced some 40 years ago as part of 4.3BSD init(8), has been removed from #OpenBSD -current.

daniel@ modified src/sbin/init/*: init(8): remove support for the window= field in /etc/ttys

This feature was introduced in 4.3BSD, and announced in "Bug Fixes and Changes in 4.3BSD", dated April 15, 1986. The feature provided a way to start a window system associated with a tty before starting getty(8).

However the implementation has a few negatives and these days graphical environments are better started in other ways.

In particular:

  • the window command is run with root privileges
  • init(8) does not track or supervise the process as part of the tty session.
  • reloading /etc/ttys by sending SIGHUP to init, can leave a stale window command cached incorrectly
  • repeated reloads leak memory

Rather than fix all these issues, remove the feature instead.

For now, existing window= entries will continue to be accepted by getttyent(3), but are ignored by init(8).

ok deraadt@