The unified diff between revisions [63fe9cf9..] and [adff2b70..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/lsi/cmdsocket.c'
# # old_revision [63fe9cf91eccf15b977d5be7600ee10a17d08d95] # new_revision [adff2b70cc1870df9f9b4d736b855dffae74eca2] # # patch "src/lsi/cmdsocket.c" # from [a6b79ffd22f3df90c3d7cca971192dadbfa3e7bb] # to [cd7a18effae96a82e01bc4931fca5a77fdfdbcdb] # ============================================================ --- src/lsi/cmdsocket.c a6b79ffd22f3df90c3d7cca971192dadbfa3e7bb +++ src/lsi/cmdsocket.c cd7a18effae96a82e01bc4931fca5a77fdfdbcdb @@ -117,7 +117,7 @@ int cmdsocket_accept(void) { } cmd_active = c; - write(cmd_active, CMDSOCKET_BANNER, sizeof(CMDSOCKET_BANNER)); + write(cmd_active, CMDSOCKET_BANNER, sizeof(CMDSOCKET_BANNER)-1); vm_register_signal_fd(cmd_active, VM_CMDREADQ); vm_wakeup(VM_CMDREADQ); @@ -131,7 +131,7 @@ void cmd_parse(char *cmd) { *strchr(cmd, '\n') = '\0'; // printf("DEBUG: Received command: %s\n", cmd); - fflush(stdout); +// fflush(stdout); sp = strtok(cmd, " \t\r"); sp = strtok(NULL, " \t\r"); @@ -144,9 +144,9 @@ void cmd_parse(char *cmd) { strncat(function, cmd, CMD_MAXSIZE); // printf("DEBUG: function: %s, arg %d\n", function, arg); - fflush(stdout); +// fflush(stdout); if (vm_spawn_args(function, 1, arg)) { - /* Write an ack here, once a proper function exists */ + /* The ack gets sent by the script */ } else { /* Write an error, if it's possible. Don't worry about missing characters and buffering for now, but we