]> andersk Git - moira.git/blobdiff - update/client.c
check new hosttable info
[moira.git] / update / client.c
index a8b85856d7882c29980c1b270229784dc9b9c77a..29b9925bcae18a0faee48159fd10329ce14d17b5 100644 (file)
@@ -145,14 +145,13 @@ char *instructions;
     com_err(whoami, 0, "starting update for %s", service_updated);
     
     /* open connection */
+    gdb_Options |= GDB_OPT_KEEPALIVE;
     conn = start_server_connection(service_address, "");
     if (!conn || (connection_status(conn) == CON_STOPPED)) {
        com_err(whoami, connection_errno(conn),
                " can't connect to update %s", service_address);
        return(MR_CANT_CONNECT);
     }
-    on = 1;
-    setsockopt(conn->in.fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on));
     
     /* send authenticators */
     code = send_auth(machine);
@@ -162,14 +161,14 @@ char *instructions;
        goto update_failed;
     }
     
-    code = send_file(pathname, target_path);
+    code = send_file(pathname, target_path, 0);
     if (code)
       goto update_failed;
 
     /* send instructions for installation */
     strcpy(buf, "/tmp/moira-update.XXXXXX");
     mktemp(buf);
-    code = send_file(instructions, buf);
+    code = send_file(instructions, buf, 0);
     if (code)
       goto update_failed;
 
This page took 0.034196 seconds and 4 git commands to generate.