Cygwin: lseek: return ESPIPE rather than EINVAL when called on a fifo
Thanks to Henri for tracking this down: https://cygwin.com/ml/cygwin/2018-10/msg00062.html Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -221,6 +221,14 @@ out:
|
||||
return res == success;
|
||||
}
|
||||
|
||||
off_t
|
||||
fhandler_fifo::lseek (off_t offset, int whence)
|
||||
{
|
||||
debug_printf ("(%D, %d)", offset, whence);
|
||||
set_errno (ESPIPE);
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool
|
||||
fhandler_fifo::wait (HANDLE h)
|
||||
{
|
||||
|
Reference in New Issue
Block a user