me->MigrateBuf = NewStrBuf();
me->RecvBuf.Buf = NewStrBuf();
-
+
begin_critical_section(S_SESSION_TABLE);
{
me->cs_pid = ++next_pid;
len = cutuserkey(sysname);
memcpy(context->curr_user, sysname, len + 1);
context->client_socket = (-1);
+ context->state = CON_SYS;
/* internal_create_user has the side effect of loading the user regardless of wether they
* already existed or needed to be created