khan: sequence number before socket open

This commit is contained in:
Jōshin 2021-04-01 03:28:32 +00:00
parent 9a9455d442
commit 368c09d86d

View File

@ -102,6 +102,16 @@ u3_khan_io_init(u3_pier* pir_u)
car_u->io.kick_f = _khan_io_kick;
car_u->io.exit_f = _khan_io_exit;
{
u3_noun now;
struct timeval tim_u;
gettimeofday(&tim_u, 0);
now = u3_time_in_tv(&tim_u);
cop_u->sev_l = u3r_mug(now);
u3z(now);
}
// Open socket. The full socket path is limited to about 108 characters, and
// we want it to be relative to the pier. So we save our current path, chdir
// to the pier, open the socket at the desired path, then chdir back.
@ -131,15 +141,5 @@ u3_khan_io_init(u3_pier* pir_u)
}
}
{
u3_noun now;
struct timeval tim_u;
gettimeofday(&tim_u, 0);
now = u3_time_in_tv(&tim_u);
cop_u->sev_l = u3r_mug(now);
u3z(now);
}
return car_u;
}