JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Prevent resizing stdin
authorEon S. Jeon <esjeon@hyunmu.am>
Tue, 17 Dec 2013 17:45:38 +0000 (12:45 -0500)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 18 Dec 2013 07:11:22 +0000 (08:11 +0100)
commitd60ee7337b5f378d8858ef3774c5552d2c8e54fa
treee9714ff107355f235ddfbbe6fe629a98579890fc
parentef1dc9fc4bdfcd944b054c329bb5d51b8c52eb5c
Prevent resizing stdin

This fixes a bug that the parent tty gets resized whenever you launch
st through command line.

The problem was that ioctl was resizing cmdfd before it gets
initialized in ttynew. Since cmdfd is a global variable, its initial
value is 0, and consequently stdin was being resized.
st.c