(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.
+2011-06-09 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * 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.
+
2011-06-09 Christopher Faylor <me.cygwin2011@cgf.cx>
* environ.cc (envcache): Delete.
#define EXEC_MAGIC_SIZE sizeof(child_info)
/* Change this value if you get a message indicating that it is out-of-sync. */
-#define CURR_CHILD_INFO_MAGIC 0xeef5640dU
+#define CURR_CHILD_INFO_MAGIC 0x29afd207U
/* NOTE: Do not make gratuitous changes to the names or organization of the
below class. The layout is checksummed to determine compatibility between
class cygheap_exec_info
{
public:
- char *old_title;
int argc;
char **argv;
int envc;
{
if (moreinfo)
{
- if (moreinfo->old_title)
- cfree (moreinfo->old_title);
if (moreinfo->envp)
{
for (char **e = moreinfo->envp; *e; e++)
static int NO_COPY envc;
static char NO_COPY **envp;
-static char title_buf[TITLESIZE + 1];
-
bool NO_COPY jit_debug;
static void
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 ();
}
#endif
pinfo_init (envp, envc);
- if (!old_title && GetConsoleTitle (title_buf, TITLESIZE))
- old_title = title_buf;
-
/* Allocate cygheap->fdtab */
dtable_init ();
*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. */
}
- 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;
{"glob", {func: glob_init}, isfunc, NULL, {{0}, {s: "normal"}}},
{"proc_retry", {func: set_proc_retry}, isfunc, NULL, {{0}, {5}}},
{"reset_com", {&reset_com}, justset, NULL, {{false}, {true}}},
- {"strip_title", {&strip_title_path}, justset, NULL, {{false}, {true}}},
- {"title", {&display_title}, justset, NULL, {{false}, {true}}},
{"tty", {func: tty_is_gone}, isfunc, NULL, {{0}, {0}}},
{"upcaseenv", {&create_upcaseenv}, justset, NULL, {{false}, {true}}},
{"winsymlinks", {&allow_winsymlinks}, justset, NULL, {{false}, {true}}},
if (*src < ' ')
{
if (*src == '\007' && dev_state.state_ == gettitle)
- {
- if (old_title)
- strcpy (old_title, dev_state.my_title_buf);
- set_console_title (dev_state.my_title_buf);
- }
+ set_console_title (dev_state.my_title_buf);
dev_state.state_ = normal;
}
else if (n < TITLESIZE)
ES_HUP_PGRP,
ES_HUP_SID,
ES_EXEC_EXIT,
- ES_TITLE,
ES_TTY_TERMINATE,
ES_FINAL
};
int NO_COPY dynamically_loaded;
/* Some CYGWIN environment variable variables. */
-bool display_title;
-bool strip_title_path;
bool allow_glob = true;
bool NO_COPY in_forkee;
char NO_COPY almost_null[1];
-char *old_title;
-
/* Define globally used, but readonly variables using the _RDATA attribute. */
#define _RDATA __attribute__ ((section(".rdata")))
moreinfo = (cygheap_exec_info *) ccalloc_abort (HEAP_1_EXEC, 1,
sizeof (cygheap_exec_info));
- moreinfo->old_title = NULL;
/* CreateProcess takes one long string that is the command line (sigh).
We need to quote any argument that has whitespace or embedded "'s. */