X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fgacela.c;h=c3864f87074a7f4ae4f3435220ecf2f619ae0488;hb=b625488bd51b74f62e17434e0ce50cb6f23ea9a1;hp=9503f4146a1c66ea56725cd49615570ad0aea1b1;hpb=a9ac7797c7eca236ee5b3114d9a6ab859c00b0b3;p=gacela.git diff --git a/src/gacela.c b/src/gacela.c index 9503f41..c3864f8 100644 --- a/src/gacela.c +++ b/src/gacela.c @@ -154,14 +154,12 @@ gacela_client (SCM rec_channel, SCM send_channel) if (line && *line) { add_history (line); - //scm_write (scm_from_locale_string ("("), send_channel); scm_write (scm_from_locale_string (line), send_channel); - //scm_write (scm_from_locale_string (")"), send_channel); scm_force_output (send_channel); while (scm_char_ready_p (rec_channel) == SCM_BOOL_F) { if (ctrl_c) break; - sleep (1); + sleep (0.5); } if (ctrl_c) ctrl_c = 0; @@ -236,7 +234,7 @@ start_local_server (char *working_path, SCM pipes) scm_c_define ("pipes", pipes); scm_c_eval_string ("(start-server pipes)"); } -/* + void start_remote_client (char *hostname, int port) { @@ -259,7 +257,7 @@ start_remote_client (char *hostname, int port) close (sockfd); } } -*/ + int main (int argc, char *argv[]) { @@ -302,8 +300,7 @@ main (int argc, char *argv[]) else if (mode == 2 && port != 0) start_server (dirname (argv[0]), port); else if (mode == 3 && port != 0) - //start_remote_client (host, port); - return; + start_remote_client (host, port); else { fd1 = scm_pipe (); fd2 = scm_pipe ();