diff options
Diffstat (limited to 'desktop/unx/source/start.c')
-rw-r--r-- | desktop/unx/source/start.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c index d62713129284..9d95547856b4 100644 --- a/desktop/unx/source/start.c +++ b/desktop/unx/source/start.c @@ -882,9 +882,12 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv ) splash = NULL; bShortWait = sal_False; - /* Since a client can't distinguish between a first-start and - a factory re-use, we return control to them here. */ - daemon( 1 /* don't chdir */, 1 /* don't re-direct output */ ); + if (!args->bInhibitDemon) + { + /* Since a client can't distinguish between a first-start and + a factory re-use, we return control to them here. */ + daemon( 1 /* don't chdir */, 1 /* don't re-direct output */ ); + } } #if OSL_DEBUG_LEVEL > 1 |