Showing with 6 additions and 1 deletion.
  1. +1 −1 src/forza.c
  2. +5 −0 src/plugins/start.c
@@ -245,7 +245,7 @@ int main(int argc, char *argv[]) {
* TODO: Make this smarter.
*/
if (addresses[i].is_internal) continue;
uv_ip4_name(&addresses[i].address.address4, hostname, 255 * sizeof(*hostname));
uv_ip4_name(&addresses[i].address.address4, hostname, 256 * sizeof(*hostname));
if (strcmp(hostname, "0.0.0.0") != 0) break;
}
uv_free_interface_addresses(addresses, c);
@@ -20,8 +20,13 @@ static uv_fs_t log_file;
static uv_file log_file_fd;

void start__on_log_file_write(uv_fs_t* req) {
//
// Remark: shouldnt this be cleaned up as well?
//
uv_fs_req_cleanup(req);
uv_fs_close(loop, &log_file, log_file_fd, NULL);
uv_fs_req_cleanup(&log_file);

log_file_fd = -1;
}