126 |
|
|
127 |
#define SET_SESSION_ID() 0 |
#define SET_SESSION_ID() 0 |
128 |
|
|
129 |
UINT WINAPI tf ( void *tain ) |
UINT WINAPI tf1 ( void *tain ) |
130 |
{ |
{ |
131 |
TAS *ta = (TAS *) tain; |
TAS *ta = (TAS *) tain; |
132 |
UINT rv = 0; |
UINT rv = 0; |
136 |
if ( w32_socket_init() >= 0 ) { |
if ( w32_socket_init() >= 0 ) { |
137 |
dsfd = sock_connect_to_name ( ta->argv[1], atoi ( ta->argv[2] ), 0); |
dsfd = sock_connect_to_name ( ta->argv[1], atoi ( ta->argv[2] ), 0); |
138 |
if ( dsfd ) { |
if ( dsfd ) { |
139 |
fprintf ( stderr, "connected to %s %s", ta->argv[1], ta->argv[2] ); |
fprintf ( stderr, "connected to %s %s\n", ta->argv[1], ta->argv[2] ); |
140 |
/* give chance for someone to attach with gdb and |
TkX_Wish ( ta->argc, ta->argv ); |
|
to set waiting to 0 */ |
|
|
while ( -- ta->delay >= 0 ) sleep(1); |
|
|
{ |
|
|
char *buf = "\0\0"; |
|
|
TkX_Wish ( ta->argc, ta->argv ); |
|
|
} |
|
|
|
|
141 |
fprintf ( stderr, "Wish shell done\n" ); |
fprintf ( stderr, "Wish shell done\n" ); |
142 |
sock_close_connection ( dsfd ); |
sock_close_connection ( dsfd ); |
143 |
ta->rv = 0; |
ta->rv = 0; |
232 |
hThread = (HANDLE) _beginthreadex ( |
hThread = (HANDLE) _beginthreadex ( |
233 |
NULL, |
NULL, |
234 |
0, |
0, |
235 |
tf, |
tf1, |
236 |
pTA, |
pTA, |
237 |
0, |
0, |
238 |
&dwThreadID |
&dwThreadID |