Skip to content

Remove unneeded workaround in syscallhandler_epoll_ctl#2660

Merged
stevenengler merged 3 commits intoshadow:mainfrom
stevenengler:epoll-ctl-check
Jan 13, 2023
Merged

Remove unneeded workaround in syscallhandler_epoll_ctl#2660
stevenengler merged 3 commits intoshadow:mainfrom
stevenengler:epoll-ctl-check

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Jan 13, 2023

See #1101 (comment). Also adds a check for closed files in epoll_control() since TCP sockets are no longer always treated as LegacyFiles (they are now sometimes wrapped as rust file objects).

@stevenengler stevenengler self-assigned this Jan 13, 2023
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Jan 13, 2023
@stevenengler stevenengler force-pushed the epoll-ctl-check branch 2 times, most recently from 1b9a689 to 1c8226a Compare January 13, 2023 16:59
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 13, 2023

Codecov Report

Base: 68.13% // Head: 68.26% // Increases project coverage by +0.13% 🎉

Coverage data is based on head (f07d246) compared to base (7120c02).
Patch has no changes to coverable lines.

❗ Current head f07d246 differs from pull request most recent head 12adcab. Consider uploading reports for the commit 12adcab to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2660      +/-   ##
==========================================
+ Coverage   68.13%   68.26%   +0.13%     
==========================================
  Files         202      202              
  Lines       30289    30289              
  Branches     5906     5906              
==========================================
+ Hits        20636    20677      +41     
+ Misses       4977     4936      -41     
  Partials     4676     4676              
Flag Coverage Δ
tests 68.26% <ø> (+0.13%) ⬆️

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

Impacted Files Coverage Δ
src/main/host/descriptor/pipe.rs 83.75% <0.00%> (-1.25%) ⬇️
src/lib/tsc/tsc_test.c 12.67% <0.00%> (ø)
src/main/host/syscall/handler/socket.rs 68.43% <0.00%> (ø)
src/main/host/syscall/handler/eventfd.rs 69.44% <0.00%> (ø)
src/main/core/support/configuration.rs 76.14% <0.00%> (+0.16%) ⬆️
src/main/host/descriptor/mod.rs 67.84% <0.00%> (+0.20%) ⬆️
src/main/core/support/units.rs 56.62% <0.00%> (+0.25%) ⬆️
src/main/core/manager.rs 64.74% <0.00%> (+0.44%) ⬆️
src/main/core/scheduler/pools/bounded.rs 77.64% <0.00%> (+1.17%) ⬆️
src/main/core/sim_config.rs 56.76% <0.00%> (+1.31%) ⬆️
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@stevenengler stevenengler merged commit e24a2e0 into shadow:main Jan 13, 2023
@stevenengler stevenengler deleted the epoll-ctl-check branch January 13, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants