|
|
|
@ -472,18 +472,14 @@ int vm_intfn_cmdsocket_write(void)
|
|
|
|
|
char *buffer = stack_getstr(vm_current, len, 2); |
|
|
|
|
int newoff; |
|
|
|
|
|
|
|
|
|
printf("cmdsocket_write in vm\n"); |
|
|
|
|
|
|
|
|
|
newoff = cmdsocket_write(buffer, len, off); |
|
|
|
|
stack_poke(vm_current, 1, newoff); |
|
|
|
|
|
|
|
|
|
if (newoff != len) { |
|
|
|
|
printf("cmdsocket_write sleeping\n"); |
|
|
|
|
vm_queue(vm_current, VM_CMDWRITEQ); |
|
|
|
|
vm_current = NULL; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
printf("cmdsocket_write success\n"); |
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|