* "ls -la /dev" fails to write output
@ 2020-05-16 18:39 Kacper Michajlow
2020-05-16 19:04 ` Takashi Yano
0 siblings, 1 reply; 4+ messages in thread
From: Kacper Michajlow @ 2020-05-16 18:39 UTC (permalink / raw)
To: cygwin
Hi,
Under cmd.exe listing /dev doesn't produce output. Running under strace
also fails with the following errors:
304 477235 [main] ls 8268 fhandler_console::write: 0x8000990F0, 54
126 477361 [main] ls 8268 seterrno_from_win_error:
../../../../winsup/cygwin/fhandler_console.cc:1810 windows error 6
110 477471 [main] ls 8268 geterrno_from_win_error: windows error 6 ==
errno 9
115 477586 [main] ls 8268 fhandler_console::write_normal: write failed,
handle 0x190
97 477683 [main] ls 8268 write: -1 = write(1, 0x8000990F0, 54), errno 9
Thanks,
Kacper
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "ls -la /dev" fails to write output
2020-05-16 18:39 "ls -la /dev" fails to write output Kacper Michajlow
@ 2020-05-16 19:04 ` Takashi Yano
2020-05-16 19:46 ` Kacper Michajlow
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Yano @ 2020-05-16 19:04 UTC (permalink / raw)
To: cygwin
On Sat, 16 May 2020 20:39:57 +0200
Kacper Michajlow via Cygwin <cygwin@cygwin.com> wrote:
> Hi,
>
> Under cmd.exe listing /dev doesn't produce output. Running under strace
> also fails with the following errors:
>
> 304 477235 [main] ls 8268 fhandler_console::write: 0x8000990F0, 54
> 126 477361 [main] ls 8268 seterrno_from_win_error:
> ../../../../winsup/cygwin/fhandler_console.cc:1810 windows error 6
> 110 477471 [main] ls 8268 geterrno_from_win_error: windows error 6 ==
> errno 9
> 115 477586 [main] ls 8268 fhandler_console::write_normal: write failed,
> handle 0x190
> 97 477683 [main] ls 8268 write: -1 = write(1, 0x8000990F0, 54), errno 9
I cannot reproduce your problem. Could you please provide
step by step procedure to reproduce your problem?
--
Takashi Yano <takashi.yano@nifty.ne.jp>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "ls -la /dev" fails to write output
2020-05-16 19:04 ` Takashi Yano
@ 2020-05-16 19:46 ` Kacper Michajlow
2020-05-17 2:38 ` Takashi Yano
0 siblings, 1 reply; 4+ messages in thread
From: Kacper Michajlow @ 2020-05-16 19:46 UTC (permalink / raw)
To: The Cygwin Mailing List
On Sat, 16 May 2020 at 21:04, Takashi Yano <takashi.yano@nifty.ne.jp> wrote:
> I cannot reproduce your problem. Could you please provide
> step by step procedure to reproduce your problem?
I though I lost it, because indeed there is prerequisite. It fails when
there is at least one pty allocated.
STR:
1. Open mintty (will allocate pty)
2. Open cmd with Cygwin's bash
3. ls -la /dev will fail in cmd.
-Kacper
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "ls -la /dev" fails to write output
2020-05-16 19:46 ` Kacper Michajlow
@ 2020-05-17 2:38 ` Takashi Yano
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Yano @ 2020-05-17 2:38 UTC (permalink / raw)
To: cygwin
On Sat, 16 May 2020 21:46:54 +0200
Kacper Michajlow via Cygwin <cygwin@cygwin.com> wrote:
> On Sat, 16 May 2020 at 21:04, Takashi Yano <takashi.yano@nifty.ne.jp> wrote:
>
> > I cannot reproduce your problem. Could you please provide
> > step by step procedure to reproduce your problem?
>
>
> I though I lost it, because indeed there is prerequisite. It fails when
> there is at least one pty allocated.
>
> STR:
> 1. Open mintty (will allocate pty)
> 2. Open cmd with Cygwin's bash
> 3. ls -la /dev will fail in cmd.
Thanks for the report. The problem does not occur in
cygwin 3.1.4, but occurs in the current git head.
I have just submit a patch for this issue.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-17 2:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-16 18:39 "ls -la /dev" fails to write output Kacper Michajlow
2020-05-16 19:04 ` Takashi Yano
2020-05-16 19:46 ` Kacper Michajlow
2020-05-17 2:38 ` Takashi Yano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).