handle initial session requests in asychronous servers

Fix #63
This commit is contained in:
Emery Hemingway
2017-01-19 12:49:49 +01:00
committed by Norman Feske
parent c06486ba0b
commit 5a971d0069
3 changed files with 13 additions and 0 deletions

View File

@@ -170,6 +170,9 @@ struct Rom_hash::Main
{
config_rom.sigh(config_handler);
session_requests.sigh(session_request_handler);
/* handle requests that have queued before or during construction */
handle_session_requests();
}
};

View File

@@ -125,6 +125,9 @@ struct Chroot::Main
{
config_rom.sigh(config_sig_rec.manage(&config_sig_ctx));
session_requests.sigh(session_request_handler);
/* handle requests that have queued before or during construction */
handle_session_requests();
}
~Main() {
@@ -190,6 +193,10 @@ struct Chroot::Main
char new_args[ARGS_MAX_LEN];
strncpy(new_args, args.string(), ARGS_MAX_LEN);
/* sacrifice the label to make space for the root argument */
Arg_string::remove_arg(new_args, "label");
Arg_string::set_arg_string(new_args, ARGS_MAX_LEN, "root", new_root);
Affinity affinity;

View File

@@ -111,6 +111,9 @@ struct Rom_fallback::Main
config_rom.sigh(config_sig_rec.manage(&config_sig_ctx));
session_requests.sigh(session_request_handler);
/* handle requests that have queued before or during construction */
handle_session_requests();
}
~Main() {