I've recently updated a box from 8-stable to 9-stable/amd64 (r237995), compiled with gcc, and now sh(1) exits if I change the window size (ssh'ing to the target system within an xterm). I don't recall ever seeing this sort of behaviour before and am still trying to track down the relevant code path.
ktrace output looks like:
1766 sh GIO fd 2 wrote 2 bytes
"# "
1766 sh RET write 2
1766 sh CALL ioctl(0,TIOCGETA,0x801020364)
1766 sh RET ioctl 0
1766 sh CALL ioctl(0,TIOCSETAW,0x801020338)
1766 sh RET ioctl 0
1766 sh CALL read(0,0x7fffffffda8f,0x1)
1766 sh RET read -1 errno 4 Interrupted system call
1766 sh PSIG SIGWINCH caught handler=0x417d10 mask=0x0 code=0x10006
1766 sh CALL sigreturn(0x7fffffffd600)
1766 sh RET sigreturn JUSTRETURN
1766 sh CALL ioctl(0,TIOCSETAW,0x80102030c)
1766 sh RET ioctl 0
1766 sh CALL setpgid(0,0x6e6)
1766 sh RET setpgid -1 errno 1 Operation not permitted
1766 sh CALL ioctl(0xa,TIOCSPGRP,0x7fffffffda74)
1766 sh RET ioctl 0
1766 sh CALL close(0xa)
1766 sh RET close 0
1766 sh CALL exit(0)
Does this ring any bells with anyone?
--
Peter Jeremy
pgp5N9G6c8SWr.pgp
Description: PGP signature
