1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

w32.c (sys_open): Don't reset the flags for FD in fd_info[].

Related to bug #13546.
This commit is contained in:
Eli Zaretskii 2013-02-27 20:00:57 +02:00
parent 5765e9e081
commit c49e225602
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-02-27 Eli Zaretskii <eliz@gnu.org>
* w32.c (sys_open): Don't reset the flags for FD in fd_info[].
(Bug#13546).
2013-02-24 Andreas Schwab <schwab@linux-m68k.org>
* xdisp.c (set_message): Only check for debug-on-message if STRING

View File

@ -3126,8 +3126,6 @@ sys_open (const char * path, int oflag, int mode)
int res = _open (mpath, (oflag & ~_O_CREAT) | _O_NOINHERIT, mode);
if (res < 0)
res = _open (mpath, oflag | _O_NOINHERIT, mode);
if (res >= 0 && res < MAXDESC)
fd_info[res].flags = 0;
return res;
}