From 50097a0ce80e2cef5c618bab0e18a77d2c6607a0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 10 Sep 2000 03:24:28 +0000 Subject: [PATCH] Added WINESERVER environment variable to allow overriding the normal server search sequence. --- scheduler/client.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scheduler/client.c b/scheduler/client.c index 4fb8318b831..e6720c24b5a 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -376,6 +376,14 @@ static void start_server( const char *oldcwd ) if (pid == -1) fatal_perror( "fork" ); if (!pid) { + /* if server is explicitly specified, use this */ + if ((p = getenv("WINESERVER"))) + { + execl( p, "wineserver", NULL ); + fatal_perror( "could not exec the server '%s'\n" + " specified in the WINESERVER environment variable", p ); + } + /* first try the installation dir */ execl( BINDIR "/wineserver", "wineserver", NULL ); -- 2.11.4.GIT