Skip to content

Clean up code, improve test coverage and expose /proc/ reading code publicly#7

Open
timthelion wants to merge 18 commits into
jabedude:masterfrom
gradesta:master
Open

Clean up code, improve test coverage and expose /proc/ reading code publicly#7
timthelion wants to merge 18 commits into
jabedude:masterfrom
gradesta:master

Conversation

@timthelion

Copy link
Copy Markdown

No description provided.

Comment thread src/lib.rs Outdated

@jabedude jabedude left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Changes look really good! Thanks for taking the time to help out. I had one tiny spelling nit

Co-authored-by: Josh Abraham <sinisterpatrician@gmail.com>
@timthelion

Copy link
Copy Markdown
Author

Thanks for catching that. I applied the change and all checks are passing.

@timthelion

Copy link
Copy Markdown
Author

Anything else that needs to be done to get this merged?

@timthelion

Copy link
Copy Markdown
Author

Just realized that POSIX uses signed i32s for Pids. So I switched over so that it is easy to use this with, for example, the nix package ;) https://docs.rs/nix/0.25.0/nix/pty/type.SessionId.html

@jabedude jabedude left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM, thank you very much for the changes

@jabedude

Copy link
Copy Markdown
Owner

Looks like a test failure related to your latest commit

In POSIX, pids are signed. Negative pids (at least historically), belonged to kernel processes.

https://unix.stackexchange.com/questions/150978/process-ids-range
@timthelion

Copy link
Copy Markdown
Author

Yeah, I think I fixed the tests now. Sorry about that. It turns out that things are a bit more complicated with the pid_ts than I thought: https://github.com/gradesta/gradesta/blob/95f39e4e53f8187f99408e34b3d089862ab830df/gradesta-s.r.o.-commercial-stuff/web/content/blog/stream4.md#part-8-ofiles-tests

@jabedude

jabedude commented Sep 7, 2022

Copy link
Copy Markdown
Owner

tests::test_symlink_basic 106 is failing

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