Changeset: 76a2dcf6bd9f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=76a2dcf6bd9f
Modified Files:
        gdk/gdk_posix.c
Branch: Feb2013
Log Message:

Don't wait for index service if reason for failure is file does not exist.


diffs (30 lines):

diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c
--- a/gdk/gdk_posix.c
+++ b/gdk/gdk_posix.c
@@ -792,7 +792,7 @@ win_rmdir(const char *pathname)
        char buf[128], *p = reduce_dir_name(pathname, buf, sizeof(buf));
        int ret = _rmdir(p);
 
-       if (ret < 0) {
+       if (ret < 0 && errno != ENOENT) {
                /* it could be the <expletive deleted> indexing
                 * service which prevents us from doing what we have a
                 * right to do, so try again (once) */
@@ -817,7 +817,7 @@ win_unlink(const char *pathname)
                (void) SetFileAttributes(pathname, FILE_ATTRIBUTE_NORMAL);
                ret = _unlink(pathname);
        }
-       if (ret < 0) {
+       if (ret < 0 && errno != ENOENT) {
                /* it could be the <expletive deleted> indexing
                 * service which prevents us from doing what we have a
                 * right to do, so try again (once) */
@@ -834,7 +834,7 @@ win_rename(const char *old, const char *
 {
        int ret = rename(old, new);
 
-       if (ret < 0) {
+       if (ret < 0 && errno != ENOENT) {
                /* it could be the <expletive deleted> indexing
                 * service which prevents us from doing what we have a
                 * right to do, so try again (once) */
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to