It seems not to return -EBUSY. As also mentioned by Andries:
If the directory is the root directory or the current working directory
of any process, it is unspecified whether the function succeeds, or
whether it fails and sets errno to [EBUSY].
The portable way is the one I mentioned as possible change for my code:
os.chdir("..")
shutil.rmtree(binutils_build)
Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/