[newlib-cygwin] Cygwin: FIFO: fix a thinko in raw_write

Ken Brown kbrown@sourceware.org
Tue Jun 25 22:51:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=09e2ec87efa5ba167dffd19d39ce7a59b7ef7877

commit 09e2ec87efa5ba167dffd19d39ce7a59b7ef7877
Author: Ken Brown <kbrown@cornell.edu>
Date:   Tue Jun 25 17:14:50 2019 -0400

    Cygwin: FIFO: fix a thinko in raw_write
    
    Remove a line that has no effect.

Diff:
---
 winsup/cygwin/fhandler_fifo.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index edc6cae..737264b 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -717,7 +717,6 @@ fhandler_fifo::raw_write (const void *ptr, size_t len)
 	    set_errno (EBADF);
 	  else
 	    __seterrno ();
-	  len = (size_t) -1;
 	}
       else if (NT_SUCCESS (status))
 	{



More information about the Cygwin-cvs mailing list