Skip to content

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Sep 17, 2025

Right now the screen driver calls yield no matter what command returns. However, if a command returns an error no upcall will be called. This checks the return from the command and only calls yield if command returned success.

Right now the screen driver calls yield no matter what command returns.
However, if a command returns an error no upcall will be called. This
checks the return from the command and only calls yield if command
returned success.
val.is_err() return val -> val?;
jrvanwhy
jrvanwhy previously approved these changes Sep 17, 2025
Copy link
Collaborator

@jrvanwhy jrvanwhy left a comment

Choose a reason for hiding this comment

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

Ideally we would have a unit test to verify this fix as well.

If the command errors there will be no upcall.
the kernel will not issue an upcall if the command returns an error.
@bradjc
Copy link
Contributor Author

bradjc commented Sep 22, 2025

We did actually have unittests to verify the behavior, but the fake kernel didn't match the real kernel.

@alevy alevy added this pull request to the merge queue Sep 22, 2025
Merged via the queue into master with commit 847a339 Sep 22, 2025
3 checks passed
@alevy alevy deleted the api-screen-command-fail branch September 22, 2025 20:42
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.

3 participants