version 1.42, 2010/10/16 08:31:55 |
version 1.43, 2010/12/11 16:05:57 |
|
|
fatal("gettimeofday failed"); |
fatal("gettimeofday failed"); |
memcpy(&c->activity_time, &c->creation_time, sizeof c->activity_time); |
memcpy(&c->activity_time, &c->creation_time, sizeof c->activity_time); |
|
|
ARRAY_INIT(&c->prompt_hdata); |
|
|
|
c->stdin_event = NULL; |
c->stdin_event = NULL; |
c->stdout_event = NULL; |
c->stdout_event = NULL; |
c->stderr_event = NULL; |
c->stderr_event = NULL; |
|
|
xfree(c->prompt_string); |
xfree(c->prompt_string); |
if (c->prompt_buffer != NULL) |
if (c->prompt_buffer != NULL) |
xfree(c->prompt_buffer); |
xfree(c->prompt_buffer); |
for (i = 0; i < ARRAY_LENGTH(&c->prompt_hdata); i++) |
|
xfree(ARRAY_ITEM(&c->prompt_hdata, i)); |
|
ARRAY_FREE(&c->prompt_hdata); |
|
|
|
if (c->cwd != NULL) |
if (c->cwd != NULL) |
xfree(c->cwd); |
xfree(c->cwd); |