engine: platform: linux: do not search sd_notify if NOTIFY_SOCKET isn't set
This commit is contained in:
parent
049bed555e
commit
d8910b0e38
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue