Skip to content

Revert "fabrics: retry connect command on EINTR"#1010

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:revert-eintr
May 8, 2025
Merged

Revert "fabrics: retry connect command on EINTR"#1010
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:revert-eintr

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented May 8, 2025

This reverts commit 2b30489.

The simple approach to retry on EINTR will also prevent to exit the loop on Ctrl-C. And adding a signal handler in the library is generally not a good idea. It would need an additional API between users and the library to handle signals. Let's forward EINTR and the user handle this instead.

The proper fix: linux-nvme/nvme-cli#2801

This reverts commit 2b30489.

The simple approach to retry on EINTR will also prevent to exit the loop
on Ctrl-C. And adding a signal handler in the library is generally not a
good idea. It would need an additional API between users and the library
to handle signals. Let's forward EINTR and the user handle this instead.

Signed-off-by: Daniel Wagner <[email protected]>
@igaw igaw merged commit 9851832 into linux-nvme:master May 8, 2025
12 checks passed
@igaw igaw deleted the revert-eintr branch May 8, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant