execute.c
changeset 107 c0a1c1e98b6a
parent 99 88d96be4e0e9
child 110 2726c92a5cb3
equal deleted inserted replaced
106:693f4b8a49d8 107:c0a1c1e98b6a
    34             error("read the filename from %i", fd_read_filename);
    34             error("read the filename from %i", fd_read_filename);
    35         if (res != sizeof(namesize))
    35         if (res != sizeof(namesize))
    36             error("Reading the size of the name");
    36             error("Reading the size of the name");
    37         ofname = (char *) malloc(namesize);
    37         ofname = (char *) malloc(namesize);
    38         res = read(fd_read_filename, ofname, namesize);
    38         res = read(fd_read_filename, ofname, namesize);
    39         if (res != sizeof(namesize))
    39         if (res != namesize)
    40             error("Reading the the out file name");
    40             error("Reading the the out file name");
    41     }
    41     }
    42     close(fd_read_filename);
    42     close(fd_read_filename);
    43 
    43 
    44     c_send_runjob_ok(ofname, pid);
    44     c_send_runjob_ok(ofname, pid);