-
Notifications
You must be signed in to change notification settings - Fork 492
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
macOS - sleep inhibiting II #9707
macOS - sleep inhibiting II #9707
Conversation
* It test a Windows method we don't use. * The test did not discover any issue on macOS.
3a60fd0
to
1e27ae5
Compare
Why draft? :) |
caffeinatePid=\$!; | ||
trap \"kill -9 \$caffeinatePid\" 0 SIGINT SIGTERM; | ||
wait {{Environment.ProcessId}}; | ||
""".ReplaceLineEndings(replacementText: " "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment on what is happening here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://learn.microsoft.com/en-us/dotnet/api/system.string.replacelineendings says
This method searches for all newline sequences within the string and canonicalizes them to match the newline sequence for the current environment. For example, when running on Windows, all occurrences of non-Windows newline sequences will be replaced with the sequence CRLF. When running on Unix, all occurrences of non-Unix newline sequences will be replaced with a single LF character.
The idea was that raw-string literals would help us avoid fuss with escapings but it did not turn out as planned.
With the last commits, tACK 2022-12-07_10-05-27.mp4I propose to keep in mind the issue about |
edit: No, only on linux. |
tACK on 1cbbd57 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
Very well done. |
Follow-up to #9548 with better inhibitor script