This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Xterm hangs with latest Cygwin (-62?)
On Oct 5 17:46, Yaakov S wrote:
> On 05/10/2009 13:47, Corinna Vinschen wrote:
>> --- sys.c.ORIG 2009-10-05 19:23:58.000000000 +0200
>> +++ sys.c 2009-10-05 19:18:34.000000000 +0200
>> @@ -408,7 +408,11 @@ openTty(char *line)
>> int rc;
>> int tty = -1;
>>
>> +#ifdef __CYGWIN__
>> + tty = open(line, O_RDWR);
>> +#else
>> tty = open(line, O_RDWR | O_NOCTTY);
>> +#endif
>
> For portability, perhaps this should also be #ifdef TIOCSCTTY, if these two
> sections go hand-in-hand?
Sure, sounds much better than #ifdef __CYGWIN__.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/