This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: openssh-4.1p1-2/cygwin-1.5.18-1: write(2) misbehaving?


On Aug 15 19:57, Dave Kilzer wrote:
> 2. Apply the attached patch and (re)build openssh.  After reading the
> manpage for write(2), it said that write(2) returns -1 on error, thus
> errno will not contain a "related" error if checked when write(2)
> returns 0.  (There were other mitigating circumstances when writing to
> "real" files according to the manpage, but this did not apply.)  The
> fact that this patch works tells me that write(2) seems to be broken,
> and is actually returning 0 when it should be returning a positive
> integer (e.g., the value of "len" in this case).
> 
> Note that I tried running "ssh.exe" from openssh-3.9p1-3/cygwin-1.5.13-1
> with cygwin-1.5.18-1, and it had the exact same problem.  (I have not
> tried compiling openssh-4.1p1-2 on the system running cygwin-1.5.13-1
> yet, though.)
> 
> Any idea what's going on?

Not exactly, but I'm suspecting a specific piece of code in Cygwin.  The
problem is that I can't reproduce this problem.  Using ssh to access other
machines works fine for me, high traffic is also no problem.

So, first step, could you please try the latest snapshot DLL from
http://cygwin.com/snapshots/ and see if the problem persists?  If so,
we will have to do some debugging together.



Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]