From 5ba5d54bd13b2aaa6a25c2b417eec029ae97c60d Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Mon, 6 Jan 2003 14:52:57 +0000 Subject: Lorsqu'un file_descr provient d'un fd du CRT, s'en souvenir et en tenir compte quand on fait Unix.dup2 (PR#1509). Remplacement de stdhandle par filedescr_of_fd. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5370 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/win32unix/unixsupport.c | 1 + 1 file changed, 1 insertion(+) (limited to 'otherlibs/win32unix/unixsupport.c') diff --git a/otherlibs/win32unix/unixsupport.c b/otherlibs/win32unix/unixsupport.c index 50c756f60..a8558f816 100644 --- a/otherlibs/win32unix/unixsupport.c +++ b/otherlibs/win32unix/unixsupport.c @@ -52,6 +52,7 @@ value win_alloc_handle(HANDLE h) value res = alloc_custom(&win_handle_ops, sizeof(struct filedescr), 0, 1); Handle_val(res) = h; Descr_kind_val(res) = KIND_HANDLE; + CRT_fd_val(res) = NO_CRT_FD; return res; } -- cgit v1.2.3-70-g09d2