allowing multiple processes to share socket #40
No reviewers
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Blocks
#39 forwarded necessary fds in spawners
JakeHillion/clone-shim
Reference: JakeHillion/clone-shim#40
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dup-sockets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -19,3 +19,3 @@
BadPipe(String),
#[error("bad socket specification: a socket must have exactly one reader and one writer: {0}")]
#[error("bad socket specification: a socket must have exactly one reader and one or more writers: {0}")]
this needs to be reflected in the specification checking
@ -180,19 +180,21 @@ impl SocketPair {
Ok(SocketPair {
name: name.to_string(),
read: Some(unsafe { File::from_raw_fd(read) }),
add more local safety comments
@ -197,0 +194,4 @@
let dup_fd = nix::unistd::dup(self.write.as_raw_fd())
.map_err(|e| Error::Nix { msg: "dup", src: e })?;
// SAFETY: fuck knows mate
fix this comment
f35e9a2ff9
to01f8f096c6
lgtm