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

Accept comments #292

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Accept comments #292

wants to merge 4 commits into from

Conversation

davidge20
Copy link
Contributor

Description

Fixes # (issue)

All functions related to and including accept_syscall were commented out

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Will add test cases if necessary

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been added to a pull request and/or merged in other modules (native-client, lind-glibc, lind-project)

@davidge20
Copy link
Contributor Author

@ve1nard requesting your review, thanks

@rennergade
Copy link
Contributor

@pranav-bhatt can you take a look at this one as well

src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Outdated Show resolved Hide resolved
src/safeposix/syscalls/net_calls.rs Show resolved Hide resolved
match filedesc_enum {
Socket(ref mut sockfdobj) => {
//Clone the socket handle as it may be in use by other threads and
//obtain a read lock, blocking the calling thread until
//there are no other writers that hold the lock
let sock_tmp = sockfdobj.handle.clone();
let mut sockhandle = sock_tmp.read();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does it have to be a mutable read guard? I deleted the mut keyword and all the tests still passed.

(Thank you Qianxi for pointing it out)

@davidge20
Copy link
Contributor Author

@rupeshkoushik07 requesting your review, thanks!

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.

None yet

4 participants