vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Index: bin/ksh/tty.c ================================================== ================= RCS file: /cvs/src/bin/ksh/tty.c,v retrieving revision 1.8 diff -u -p -r1.8 tty.c --- bin/ksh/tty.c 2005/03/30 17:16:37 1.8 +++ bin/ksh/tty.c 2006/03/14 16:38:48 @@ -22,12 +22,9 @@ tty_init(int init_ttystate) tty_devtty = 1; if ((tfd = open("/dev/tty", O_RDWR, 0)) < 0) { - if (tfd < 0) { - tty_devtty = 0; - warningf(false, - "No controlling tty (open /dev/tty: %s)", + tty_devtty = 0; + warningf(false, "No controlling tty (open /dev/tty: %s)", strerror(errno)); - } } if (tfd < 0) { |