Decouple client contracts and close private role registries
This commit is contained in:
parent
786049534d
commit
22325aa76a
1 changed files with 1041 additions and 321 deletions
|
|
@ -439,7 +439,7 @@ fn fail_running_captured<T>(
|
|||
#[allow(clippy::disallowed_types)]
|
||||
fn private_role_command(role: &str) -> std::process::Command {
|
||||
let mut command = std::process::Command::new("/proc/self/exe");
|
||||
command.arg(PRIVATE_ROLE_ARGUMENT).arg(role);
|
||||
command.arg(PRIVATE_PROCESS_ROLE).arg(role);
|
||||
command
|
||||
}
|
||||
|
||||
|
|
@ -450,7 +450,7 @@ fn private_role_command(role: &str) -> std::process::Command {
|
|||
pub fn dispatch_private_process_role(arguments: &[OsString]) -> Option<io::Result<()>> {
|
||||
if arguments
|
||||
.first()
|
||||
.is_none_or(|argument| argument != PRIVATE_ROLE_ARGUMENT)
|
||||
.is_none_or(|argument| argument != PRIVATE_PROCESS_ROLE)
|
||||
{
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue