* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.

(child_info::old_title): Delete.
(child_info::~child_info_spawn): Remove recording of old_title.
* dcrt0.cc (title_buf): Delete.
(child_info_spawn::handle_spawn): Remove recording of old_title.
(dll_crt0_1): Get rid of all title handling.
(do_exit): Ditto.
* environ.cc (known): Delete strip_title and title.
* fhandler_console.cc (fhandler_console::write): Remove recording of old_title.
* globals.cc (exit_states): Remove ES_TITLE.
(display_title): Delete.
(strip_title_path): Delete.
(old_title): Delete.
* spawn.cc (spawn_guts): Remove old_title accommodation.
This commit is contained in:
Christopher Faylor
2011-06-09 21:20:27 +00:00
parent e254790b66
commit b6510ccdcd
7 changed files with 20 additions and 47 deletions

View File

@@ -48,8 +48,6 @@ extern "C" void __sinit (_reent *);
static int NO_COPY envc;
static char NO_COPY **envp;
static char title_buf[TITLESIZE + 1];
bool NO_COPY jit_debug;
static void
@@ -635,11 +633,6 @@ child_info_spawn::handle_spawn ()
child_proc_info->parent = NULL;
signal_fixup_after_exec ();
if (moreinfo->old_title)
{
old_title = strcpy (title_buf, moreinfo->old_title);
cfree (moreinfo->old_title);
}
fixup_lockf_after_exec ();
}
@@ -814,9 +807,6 @@ dll_crt0_1 (void *)
#endif
pinfo_init (envp, envc);
if (!old_title && GetConsoleTitle (title_buf, TITLESIZE))
old_title = title_buf;
/* Allocate cygheap->fdtab */
dtable_init ();
@@ -873,18 +863,6 @@ dll_crt0_1 (void *)
*cp = '\0';
}
/* Set new console title if appropriate. */
if (display_title && !dynamically_loaded)
{
char *cp = __progname;
if (strip_title_path)
for (char *ptr = cp; *ptr && *ptr != ' '; ptr++)
if (isdirsep (*ptr))
cp = ptr + 1;
set_console_title (cp);
}
(void) xdr_set_vprintf (&cygxdr_vwarnx);
cygwin_finished_initializing = true;
/* Call init of loaded dlls. */
@@ -1067,14 +1045,6 @@ do_exit (int status)
}
if (exit_state < ES_TITLE)
{
exit_state = ES_TITLE;
/* restore console title */
if (old_title && display_title)
set_console_title (old_title);
}
if (exit_state < ES_TTY_TERMINATE)
{
exit_state = ES_TTY_TERMINATE;