mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-08 05:11:51 +08:00
engine: platform: linux: do not search sd_notify if NOTIFY_SOCKET isn't set
This commit is contained in:
@@ -111,6 +111,11 @@ void Linux_Init( void )
|
||||
if( !Host_IsDedicated( ))
|
||||
return;
|
||||
|
||||
// manpage says sd_notify will send messages to socket in NOTIFY_SOCKET
|
||||
// environment variable. Check if it's available.
|
||||
if( getenv( "NOTIFY_SOCKET" ) == NULL )
|
||||
return;
|
||||
|
||||
if(( g_hsystemd = dlopen( "libsystemd.so.0", RTLD_LAZY )) == NULL )
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user