From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: Three major questions.
Date: Thu, 11 Sep 2003 17:58:22 +0400 [thread overview]
Message-ID: <3F607F7E.4000708@aknet.ru> (raw)
Hello.
Ryan Underwood wrote:
>> What dosemu version is this? There was an isatty() check added
>> recently (but not *very* recently), see parser.y.in:1284. It
>> supposed to fail if you are trying to use a virtual com port on a
>> redirected stdio, so I don't think this way still works. Or is
>> it?
> This was with 1.0.2 stable IIRC.
OK, even in this case I can't imagine
how this could work. Dosemu assumes that
this is a tty in all the places around.
For example it does
strcpy(sptr->dev, ttyname(0))
which leads to a SIGSEGV for apparent
reasons in case stdio is redirected.
That was the point of adding an isatty()
check at first place.
Then it uses ioctl() for obtaining a serial
port status. ioctl'ing socket will simply
fail so the status will always be bogus.
So actually I don't think this could ever
work. There was a bug reports filled on SF
that this doesn't work and segfaults, and
then it was prohibited with an isatty() check
and the better alternative of using a
pseudo-tty's was added instead.
So it would be really usefull if you provide
more info on how exactly have you done that
and avoided all the underwater stones, and
also how to do that with the recent dosemus.
next reply other threads:[~2003-09-11 13:58 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-11 13:58 Stas Sergeev [this message]
2003-09-13 7:28 ` Three major questions Ryan Underwood
-- strict thread matches above, loose matches on Subject: below --
2003-09-10 18:04 Stas Sergeev
2003-09-11 1:05 ` Ryan Underwood
2003-09-07 1:58 Stas Sergeev
2003-09-07 2:57 ` Matthew Clarke
2003-09-07 13:16 ` Stas Sergeev
2003-09-06 23:38 administrator
2003-09-08 15:58 ` Ryan Underwood
2003-09-06 21:04 administrator
2003-09-06 21:58 ` Ryan Underwood
2003-09-06 21:58 ` Bart Oldeman
2003-09-06 22:20 ` Cheryl Homiak
2003-09-06 17:18 Boris Reisig
2003-09-06 21:00 ` Ralph Alvy
2003-09-09 17:56 ` Justin Zygmont
2003-09-10 17:09 ` Ryan Underwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F607F7E.4000708@aknet.ru \
--to=stsp@aknet.ru \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox