The TIOCSTAT ioctl (which admittedly isn't documented) doesn't seem to work. From a quick look at the kernel code, it looks like it should. The only program that I know of that is affected by the problem is bash, but I would guess that any shells with command line editing would also be hit. How-To-Repeat: Run: #include <sys/types.h> #include <sys/ioctl.h> main() { ioctl(1, TIOCSTAT, (char *)0); }
State Changed From-To: open->closed The bug was caused by the ioctl requiring the address of an int to be copied in. This wasn't necessary - I've changed the ioctl to be a no-arg type. All things built using the TIOCSTAT ioctl will have to be re-compiled and linked.