version 1.9, 2009/07/30 16:40:12 |
version 1.10, 2009/08/08 21:52:43 |
|
|
struct msg_identify_data identifydata; |
struct msg_identify_data identifydata; |
struct msg_resize_data resizedata; |
struct msg_resize_data resizedata; |
struct msg_unlock_data unlockdata; |
struct msg_unlock_data unlockdata; |
|
struct msg_environ_data environdata; |
|
|
for (;;) { |
for (;;) { |
if (BUFFER_USED(c->in) < sizeof hdr) |
if (BUFFER_USED(c->in) < sizeof hdr) |
|
|
c->flags &= ~CLIENT_SUSPENDED; |
c->flags &= ~CLIENT_SUSPENDED; |
tty_start_tty(&c->tty); |
tty_start_tty(&c->tty); |
server_redraw_client(c); |
server_redraw_client(c); |
|
break; |
|
case MSG_ENVIRON: |
|
if (hdr.size != sizeof environdata) |
|
fatalx("bad MSG_ENVIRON size"); |
|
buffer_read(c->in, &environdata, sizeof environdata); |
|
|
|
environdata.var[(sizeof environdata.var) - 1] = '\0'; |
|
if (strchr(environdata.var, '=') != NULL) |
|
environ_put(&c->environ, environdata.var); |
break; |
break; |
default: |
default: |
fatalx("unexpected message"); |
fatalx("unexpected message"); |