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

server: Use std::fs APIs instead of nix where possible #659

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Sep 23, 2023

No description provided.

@codecov
Copy link

codecov bot commented Sep 23, 2023

Codecov Report

Patch coverage: 85.71% and project coverage change: -0.01% ⚠️

Comparison is base (e1be14c) 73.04% compared to head (7ad2fd0) 73.03%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
- Coverage   73.04%   73.03%   -0.01%     
==========================================
  Files          47       47              
  Lines        7779     7777       -2     
==========================================
- Hits         5682     5680       -2     
  Misses       2097     2097              
Flag Coverage Δ
main 58.33% <0.00%> (+0.01%) ⬆️
test-- 78.08% <85.71%> (-0.01%) ⬇️
test--server_system 61.34% <85.71%> (-0.02%) ⬇️
test-client_system- 69.10% <85.71%> (-0.02%) ⬇️
test-client_system-server_system 51.41% <85.71%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
wayland-server/src/socket.rs 45.55% <85.71%> (-1.19%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +85 to +91
_lock = File::options()
.create(true)
.read(true)
.write(true)
.mode(0o660)
.open(&lock_path)
.map_err(|_| BindError::PermissionDenied)?;
Copy link
Member

Choose a reason for hiding this comment

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

CLOEXEC set by default by the File constructor I assume?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it should set CLOEXEC regardless of what options are used.

@elinorbgr elinorbgr merged commit bb133c1 into Smithay:master Sep 25, 2023
14 of 15 checks passed
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