diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-10-14 14:15:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-10-14 14:15:22 +0100 |
commit | d6abbee4d1bb09ca4c8811968207dcdc6619a2e9 (patch) | |
tree | 052957849254c42723b3a59de6457a5fd2c9427e /CMakeLists.txt | |
parent | 3f031b071cc104fa03db38cfdb532f2e3b22be6a (diff) | |
download | rspamd-d6abbee4d1bb09ca4c8811968207dcdc6619a2e9.tar.gz rspamd-d6abbee4d1bb09ca4c8811968207dcdc6619a2e9.zip |
[Minor] Do not use `setproctitle` on Linux
Issue: #4634
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f9c807e9..673806bd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -315,7 +315,10 @@ CHECK_INCLUDE_FILES(ucontext.h HAVE_UCONTEXT_H) CHECK_INCLUDE_FILES(sys/ucontext.h HAVE_SYS_UCONTEXT_H) # OSX specific # Check platform API -CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE) +IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") + # setproctitle is broken badly in Linux, never try it + CHECK_FUNCTION_EXISTS(setproctitle HAVE_SETPROCTITLE) +ENDIF() CHECK_FUNCTION_EXISTS(getpagesize HAVE_GETPAGESIZE) CHECK_FUNCTION_EXISTS(nanosleep HAVE_NANOSLEEP) CHECK_FUNCTION_EXISTS(flock HAVE_FLOCK) |