Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xwayland complains that -listen is deprecated, use -listenfd instead #3491

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

AlanGriffiths
Copy link
Collaborator

No description provided.

@AlanGriffiths AlanGriffiths requested a review from a team as a code owner July 17, 2024 15:50
@@ -83,7 +83,7 @@ void exec_xwayland(
for (auto const& fd : spawner.socket_fds())
{
mf::XWaylandSpawner::set_cloexec(fd, false);
args.push_back("-listen");
args.push_back("-listenfd");
// strdup() may look like a leak, but execvp() will trash all resource management
args.push_back(strdup(std::to_string(fd).c_str()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, no! Pre-existing, but:

After a fork() in a multithreaded program, the child can safely call only async-signal-safe functions (see signal-safety(7)) until such time as it calls execve(2).

Copy link
Contributor

@RAOF RAOF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the pre-existing nit, yup.

@AlanGriffiths
Copy link
Collaborator Author

Merging: You've raised the "nit" as #3494, and it is more work than I feel justified for this PR

@AlanGriffiths AlanGriffiths added this pull request to the merge queue Jul 18, 2024
Merged via the queue into main with commit 6842d73 Jul 18, 2024
22 of 24 checks passed
@AlanGriffiths AlanGriffiths deleted the listenfd branch July 18, 2024 09:27
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.

2 participants