aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 0040fd3c8..89bd886d3 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -172,8 +172,7 @@
172//config: Enable support for the 'noconsole' option, which attempts to 172//config: Enable support for the 'noconsole' option, which attempts to
173//config: hide the console normally associated with a command line 173//config: hide the console normally associated with a command line
174//config: application. This may be useful when running a shell script 174//config: application. This may be useful when running a shell script
175//config: from a GUI application. Disable this if your platform doesn't 175//config: from a GUI application.
176//config: support the required APIs.
177//config: 176//config:
178//config:endif # ash options 177//config:endif # ash options
179 178
@@ -14917,13 +14916,8 @@ int ash_main(int argc UNUSED_PARAM, char **argv)
14917#endif 14916#endif
14918 14917
14919#if ENABLE_ASH_NOCONSOLE 14918#if ENABLE_ASH_NOCONSOLE
14920 if ( noconsole ) { 14919 if (noconsole)
14921 DWORD dummy; 14920 hide_console();
14922
14923 if ( GetConsoleProcessList(&dummy, 1) == 1 ) {
14924 ShowWindow(GetConsoleWindow(), SW_HIDE);
14925 }
14926 }
14927#endif 14921#endif
14928 14922
14929 if (login_sh) { 14923 if (login_sh) {