lix compat: SSH connections uses socketpairs now #51

Merged
ma27 merged 1 commit from raito/hydra:socketpairs-ssh into main 2025-06-19 09:20:31 +00:00
Owner

Pipes are removed and replaced by socketpairs the same way Lix does for
ssh-ng.

Fixes #50 but I'm not sure the code is perfectly correct, thorough testing is advised.

Signed-off-by: Raito Bezarius raito@lix.systems

Pipes are removed and replaced by socketpairs the same way Lix does for ssh-ng. Fixes #50 but I'm not sure the code is perfectly correct, thorough testing is advised. Signed-off-by: Raito Bezarius <raito@lix.systems>
Pipes are removed and replaced by socketpairs the same way Lix does for
ssh-ng.

Signed-off-by: Raito Bezarius <raito@lix.systems>
@ -87,1 +91,4 @@
parent.close();
if (dup2(child.get(), STDIN_FILENO) == -1)
throw SysError("cannot dup input pipe to stdin");
Author
Owner

these should be changed

these should be changed
Member

I don't follow, wdym with "changed"?

I don't follow, wdym with "changed"?
Author
Owner

"cannot dup input pipe to stdin" should be "cannot dup socket to stdin"

"cannot dup input pipe to stdin" should be "cannot dup socket to stdin"
ma27 approved these changes 2025-06-19 09:20:24 +00:00
ma27 left a comment
Member

Will fix up the error message on main (I cannot push to other contributor's branches here, apparently).

Tested on my own Hydra.

Will fix up the error message on main (I cannot push to other contributor's branches here, apparently). Tested on my own Hydra.
ma27 merged commit ba0fb1063b into main 2025-06-19 09:20:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/hydra#51
No description provided.