Fix bug in posix file/directory removal wrapper, as pointed out by kahrl
authorPerttu Ahola <celeron55@gmail.com>
Tue, 6 Sep 2011 14:52:03 +0000 (17:52 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 6 Sep 2011 14:52:03 +0000 (17:52 +0300)
src/filesys.cpp

index 037d21fdbbe34f71d2b0f4a6987be4c14e96c6d0..8aa10ba585408730bacc72e53e7cae96dd1dad88 100644 (file)
@@ -254,7 +254,7 @@ bool RecursiveDelete(std::string path)
                execv(argv[0], argv);
                
                // Execv shouldn't return. Failed.
-               return false;
+               _exit(1);
        }
        else
        {