Modified: freeswitch/trunk/src/switch_console.c (14717 => 14718)
--- freeswitch/trunk/src/switch_console.c 2009-09-01 17:40:51 UTC (rev 14717)
+++ freeswitch/trunk/src/switch_console.c 2009-09-01 17:48:11 UTC (rev 14718)
@@ -431,8 +431,6 @@
char *prompt(EditLine * e)
{
if (*prompt_str == '\0') {
- gethostname(hostname, sizeof(hostname));
- switch_core_set_variable("hostname", hostname);
switch_snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s> ", hostname);
}
@@ -739,6 +737,8 @@
switch_threadattr_t *thd_attr = NULL;
switch_memory_pool_t *pool;
+ gethostname(hostname, sizeof(hostname));
+
if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Pool Failure\n");
return;