Commit 506aedbc authored by Mike Gabriel's avatar Mike Gabriel

Xserver/os/utils.c: Add NXAGENT_SERVER specific -nolisten parameter: ANY.

This allows us to trigger the NoListenAll := TRUE code path in nxagent.
parent e8bc4c7e
......@@ -43,6 +43,7 @@ NX_DEFINES = -DNX_TRANS_SOCKET \
-DNX_TRANS_SLEEP \
-DNX_TRANS_EXIT \
-DNX_TRANS_WAKEUP=1000 \
-DNXAGENT_SERVER \
$(NULL)
# -DNX_TRANS_WARN \
......
......@@ -902,6 +902,11 @@ ProcessCommandLine(int argc, char *argv[])
else if ( strcmp( argv[i], "-nolisten") == 0)
{
if(++i < argc) {
#ifdef NXAGENT_SERVER
if (strcmp( argv[i], "ANY" ) == 0)
NoListenAll = TRUE;
else
#endif /* NXAGENT_SERVER */
if (_XSERVTransNoListen(argv[i]))
FatalError ("Failed to disable listen for %s transport",
argv[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment