KILL [CONNECTION | QUERY] support, part1
Preparation for adding KILL syntax support. Session id changed to uint32 everywhere. Added atomic op. Session id can be acquired before session_alloc(). Added session_alloc_with_id(), which is given a session id number. Worker object has a session_id->SESSION* mapping, not used yet.
This commit is contained in:
@ -297,7 +297,7 @@ static bool process_argument(const MODULECMD *cmd, modulecmd_arg_type_t *type, c
|
||||
break;
|
||||
|
||||
case MODULECMD_ARG_SESSION:
|
||||
if ((arg->value.session = session_get_by_id(atoi((const char*)value))))
|
||||
if ((arg->value.session = session_get_by_id(strtoul((const char*)value, NULL, 0))))
|
||||
{
|
||||
arg->type.type = MODULECMD_ARG_SESSION;
|
||||
}
|
||||
|
Reference in New Issue
Block a user