summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/delqueue.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/delqueue.cc')
-rw-r--r--winsup/cygwin/delqueue.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/delqueue.cc b/winsup/cygwin/delqueue.cc
index 17feb6991..08a17fd75 100644
--- a/winsup/cygwin/delqueue.cc
+++ b/winsup/cygwin/delqueue.cc
@@ -85,7 +85,8 @@ delqueue_list::process_queue ()
{
int res = GetLastError ();
empty = 0;
- if (res == ERROR_SHARING_VIOLATION)
+ if (res == ERROR_SHARING_VIOLATION ||
+ (os_being_run != winNT && res == ERROR_ACCESS_DENIED))
{
/* File still inuse, that's ok */
syscall_printf ("Still using %s", name[i]);