]> Nishi Git Mirror - rbuild.git/commitdiff
fix
authorNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 21:08:15 +0000 (21:08 +0000)
committerNishi <nishi@nishi.boats>
Fri, 11 Oct 2024 21:08:15 +0000 (21:08 +0000)
git-svn-id: file:///raid/svn-personal/rbuild/trunk@14 c68d3453-7f82-0740-9748-1d72386a946b

Server/server.c
Server/task.c

index c21e354bc89cb0fad97f5acd1c73bde36ba47387..e838fbc191ec91c41d5cec76abbfeeebd390d7c7 100644 (file)
@@ -214,6 +214,8 @@ void rbs_server_handler(void* sockptr) {
                        } else if(strcmp(cmd, "CC") == 0 && arg != NULL && authed) {
                                if(rbs_task(sock, section, cmd, arg)) {
                                        rbs_write(sock, "SUCCESS\n", 8);
+                                       free(line);
+                                       break;
                                } else {
                                        rbs_write(sock, "FAIL\n", 5);
                                        free(line);
index 882bc5d06b95b372e59670e148ea15908c5a0fe6..c8efe5415ba119514be0a1481973e982841b4790 100644 (file)
@@ -69,9 +69,6 @@ char** rbs_parse_args(const char* cmd, const char* arg) {
                }
        }
        free(str);
-       for(i = 0; stack[i] != NULL; i++) {
-               printf("[%s]\n", stack[i]);
-       }
        return stack;
 }
 
@@ -105,6 +102,7 @@ CMBOOL rbs_wait_process(int sock) {
                int len = read(outpipe[0], &c, 1);
                if(len <= 0) break;
                if(c == '\n') {
+                       if(oldc == '\n') rbs_write(sock, "+", 1);
                        rbs_write(sock, "\n", 1);
                } else {
                        if(oldc == '\n') rbs_write(sock, "+", 1);