diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-11 19:32:55 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-11 19:32:55 +0200 |
| commit | b4c073cd4c5d20af2252e49377def6c31b39fa59 (patch) | |
| tree | 647921b6cd474f3f232d5ade1ef64a92f19105cb | |
| parent | 71ae933f5af528f9a8cda8f3066e61f8dddb8559 (diff) | |
| download | allocbench-b4c073cd4c5d20af2252e49377def6c31b39fa59.tar.gz allocbench-b4c073cd4c5d20af2252e49377def6c31b39fa59.zip | |
except OSError: /usr/sbin/mysqld: cannot dynamically load executable
| -rw-r--r-- | src/facter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/facter.py b/src/facter.py index 300e12f..647cd1f 100644 --- a/src/facter.py +++ b/src/facter.py @@ -30,7 +30,11 @@ def glibc_version_string(bin=None): # manpage says, "If filename is NULL, then the returned handle is for the # main program". This way we can let the linker do the work to figure out # which libc our process is actually using. - process_namespace = ctypes.CDLL(bin) + try: + process_namespace = ctypes.CDLL(bin) + except OSError: + return None + try: gnu_get_libc_version = process_namespace.gnu_get_libc_version except AttributeError: |
