diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2017-11-19 15:35:22 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2017-11-19 15:35:22 +0000 |
commit | a67221f8b4aebdc9fc7034e5b9c0024ec1356a74 (patch) | |
tree | f491ac5d7f404edc255f32da331bc57d9f7299be /src/VBox/Runtime/r3/linux/RTProcIsRunningByName-linux.cpp | |
parent | 2a8b83c1c63276f4474b6e5ec82405d5d3f01989 (diff) | |
download | VirtualBox-svn-a67221f8b4aebdc9fc7034e5b9c0024ec1356a74.tar.gz |
RTProcIsRunningByName-linux.cpp: RTDIRENTRYTYPE_UNKNOWN, just in case.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@69760 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/r3/linux/RTProcIsRunningByName-linux.cpp')
-rw-r--r-- | src/VBox/Runtime/r3/linux/RTProcIsRunningByName-linux.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/VBox/Runtime/r3/linux/RTProcIsRunningByName-linux.cpp b/src/VBox/Runtime/r3/linux/RTProcIsRunningByName-linux.cpp index f017e6fdb97..7546dd17e43 100644 --- a/src/VBox/Runtime/r3/linux/RTProcIsRunningByName-linux.cpp +++ b/src/VBox/Runtime/r3/linux/RTProcIsRunningByName-linux.cpp @@ -64,8 +64,9 @@ RTR3DECL(bool) RTProcIsRunningByName(const char *pszName) /* * Filter numeric directory entries only. */ - if ( DirEntry.enmType == RTDIRENTRYTYPE_DIRECTORY - && RTStrToUInt32(DirEntry.szName) > 0) + if ( ( DirEntry.enmType == RTDIRENTRYTYPE_DIRECTORY + || DirEntry.enmType == RTDIRENTRYTYPE_UNKNOWN) + && RTStrToUInt32(DirEntry.szName) > 0) { /* * Try readlink on exe first since it's more faster and reliable. |