From 0762f1a067cb006c0bbf707658a51a02ff0225d1 Mon Sep 17 00:00:00 2001 From: Gavan Fantom Date: Wed, 26 Dec 2007 18:19:52 +0000 Subject: [PATCH] Don't fflush when printf is commented out. Also update comment. --- src/lsi/cmdsocket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lsi/cmdsocket.c b/src/lsi/cmdsocket.c index 66a702a..feb4dad 100644 --- a/src/lsi/cmdsocket.c +++ b/src/lsi/cmdsocket.c @@ -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