Commit 1a02be1b authored by fogal1's avatar fogal1
Browse files

X startup: add -nolisten tcp option.

We don't need to access the X server over TCP, and some system
administrators find this more comforting.

Note that we've always used xinit, so administrators could always
have set this indirectly anyway, by relying on a site-specific
XINITRC env var setting.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@14762 18c085ea-50e0-402c-830e-de6fd14e8384
parent 1f7d28dd
...@@ -129,6 +129,9 @@ XDisplay::~XDisplay() ...@@ -129,6 +129,9 @@ XDisplay::~XDisplay()
// Prevent memory leaks in the event of failure. Force "-ac" in X server // Prevent memory leaks in the event of failure. Force "-ac" in X server
// command line options, as usage is unreliable otherwise. // command line options, as usage is unreliable otherwise.
// //
// Tom Fogal, Mon May 24 11:16:04 MDT 2010
// Add '-nolisten tcp' argument. We don't need TCP access.
//
// **************************************************************************** // ****************************************************************************
bool bool
...@@ -147,6 +150,8 @@ XDisplay::Initialize(size_t display, const std::vector<std::string> &user_args) ...@@ -147,6 +150,8 @@ XDisplay::Initialize(size_t display, const std::vector<std::string> &user_args)
args.push_back("-sharevts"); args.push_back("-sharevts");
args.push_back("-once"); args.push_back("-once");
args.push_back("-terminate"); args.push_back("-terminate");
args.push_back("-nolisten");
args.push_back("tcp");
StringHelpers::append(args, user_args); StringHelpers::append(args, user_args);
argv = vec_convert(args, &v_elems); argv = vec_convert(args, &v_elems);
......
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