stdin pipe rename in 3.2.0
Takashi Yano
takashi.yano@nifty.ne.jp
Fri Mar 19 12:05:46 GMT 2021
On Fri, 19 Mar 2021 19:08:07 +0900
Takashi Yano wrote:
> Corinna, is it possble to apply the patch for 3.2.0 release?
By the way, duaring testing https://github.com/k-takata/ptycheck,
I noticed _get_osfhandle() does not work properly for stdout and
stderr. Shouldn't this
extern "C" long
_get_osfhandle (int fd)
{
long res;
cygheap_fdget cfd (fd);
if (cfd >= 0)
res = (long) cfd->get_handle ();
else
res = -1;
syscall_printf ("%R = get_osfhandle(%d)", res, fd);
return res;
}
be
extern "C" long
_get_osfhandle (int fd)
{
long res;
cygheap_fdget cfd (fd);
if (cfd >= 0)
{
if (fd == 1 || fd == 2)
res = (long) cfd->get_output_handle_cyg ();
else
res = (long) cfd->get_handle_cyg ();
}
else
res = -1;
syscall_printf ("%R = get_osfhandle(%d)", res, fd);
return res;
}
?
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin
mailing list