Auto-updater

This commit is contained in:
RipleyTom 2019-09-11 09:55:43 +02:00 committed by Megamouse
parent 56e6dd1c46
commit 9f9ac4b696
31 changed files with 2068 additions and 52 deletions

View file

@ -1067,7 +1067,7 @@ fs::file::file(const std::string& path, bs_t<open_mode> mode)
m_file = std::make_unique<windows_file>(handle);
#else
int flags = 0;
int flags = O_CLOEXEC; // Ensures all files are closed on execl for auto updater
if (mode & fs::read && mode & fs::write) flags |= O_RDWR;
else if (mode & fs::read) flags |= O_RDONLY;