Merge branch 'development' into LTS_development
This commit is contained in:
commit
59bb7cfaa4
1 changed files with 5 additions and 1 deletions
|
@ -350,14 +350,18 @@ namespace IPC {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if the open file still exists.
|
/// Returns true if the open file still exists.
|
||||||
/// Not implemented under Windows.
|
/// \TODO Not implemented under Windows.
|
||||||
bool sharedPage::exists(){
|
bool sharedPage::exists(){
|
||||||
|
#if defined(__CYGWIN__) || defined(_WIN32)
|
||||||
|
return true;//Not implemented under Windows...
|
||||||
|
#else
|
||||||
#ifdef SHM_ENABLED
|
#ifdef SHM_ENABLED
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
if (fstat(handle, &sb)){return false;}
|
if (fstat(handle, &sb)){return false;}
|
||||||
return (sb.st_nlink > 0);
|
return (sb.st_nlink > 0);
|
||||||
#else
|
#else
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue