Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2018-04-05 21:16:27 +02:00
commit 59bb7cfaa4

View file

@ -350,14 +350,18 @@ namespace IPC {
}
/// Returns true if the open file still exists.
/// Not implemented under Windows.
/// \TODO Not implemented under Windows.
bool sharedPage::exists(){
#if defined(__CYGWIN__) || defined(_WIN32)
return true;//Not implemented under Windows...
#else
#ifdef SHM_ENABLED
struct stat sb;
if (fstat(handle, &sb)){return false;}
return (sb.st_nlink > 0);
#else
return true;
#endif
#endif
}