From e1c519b41ff08e9cffd1a687c4225566c6cc250b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 25 Apr 2014 14:43:13 +0000 Subject: [PATCH] * syscalls.cc (NT_TRANSACTIONAL_ERROR): Cover all status codes up to STATUS_TRANSACTION_NOT_ENLISTED. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/syscalls.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d50936b6e..5217a8510 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2014-04-25 Corinna Vinschen + + * syscalls.cc (NT_TRANSACTIONAL_ERROR): Cover all status codes up to + STATUS_TRANSACTION_NOT_ENLISTED. + 2014-04-24 Corinna Vinschen * fhandler_socket.cc: On x86_64, define u_long as __ms_u_long before diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 9d7212def..3a8fabf6d 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -187,7 +187,7 @@ dup3 (int oldfd, int newfd, int flags) /* Define macro to simplify checking for a transactional error code. */ #define NT_TRANSACTIONAL_ERROR(s) \ (((ULONG)(s) >= (ULONG)STATUS_TRANSACTIONAL_CONFLICT) \ - && ((ULONG)(s) <= (ULONG)STATUS_LOG_GROWTH_FAILED)) + && ((ULONG)(s) <= (ULONG)STATUS_TRANSACTION_NOT_ENLISTED)) static inline void start_transaction (HANDLE &old_trans, HANDLE &trans)