diff options
author | anton <anton@cvs.openbsd.org> | 2018-08-29 06:04:47 +0000 |
---|---|---|
committer | anton <anton@cvs.openbsd.org> | 2018-08-29 06:04:47 +0000 |
commit | 4d2995288b624131fc1cf8e9fd8f25003c4fc371 (patch) | |
tree | fb293748bee331ba26e0f051ee5c7fd61f64c033 /usr.bin/mg/line.c | |
parent | 657185145d91bae2e7a0d44c95cf3450dd4b2111 (diff) |
Initialize device numbers for newly allocated ptys. Prevents a panic caused by
the following: a new pty is allocated in which the kernel console output is
redirected to, poll(2):ing from /dev/console at this point would be delegated to
the device with the major number taken from the pty due to the earlier
redirection. Since the pty does not have its correct device major assigned, the
wrong device ends up being used.
ok deraadt@ millert@
Diffstat (limited to 'usr.bin/mg/line.c')
0 files changed, 0 insertions, 0 deletions