mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 16:15:41 -08:00
Trim comments and docs to what the code needs
AI Assisted
This commit is contained in:
1 parent
eba3c3bf0c
commit
0bd721fc27
33 files changed
+292
-392
No files matched your search
@@ -103,10 +103,9 @@ fn kill_ends_a_running_step() {
|
||||
);
|
||||
}
|
||||
|
||||
/// A grandchild that ignores hangup is still in the agent's process group
|
||||
/// (portable-pty starts the agent under `setsid`), so `kill` must reach it
|
||||
/// through the group once the grace is up. An ordinary grandchild already dies
|
||||
/// with its shell, when the kernel hangs up the terminal, so it cannot show this.
|
||||
/// A grandchild that ignores hangup stays in the command's process group, so
|
||||
/// `kill` must reach it through the group once the grace is up. An ordinary
|
||||
/// grandchild dies when the kernel hangs up the terminal, so it cannot show this.
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
fn kill_ends_a_hangup_ignoring_grandchild_after_the_grace() {
|
||||
@@ -124,9 +123,8 @@ fn kill_ends_a_hangup_ignoring_grandchild_after_the_grace() {
|
||||
);
|
||||
}
|
||||
|
||||
/// An agent that ended by itself was never killed, so no grace thread of
|
||||
/// `kill`'s is there to finish its group: only `end_group` can end the
|
||||
/// grandchild that ignored the terminal's hangup.
|
||||
/// A command that exited by itself was never killed, so no `kill` grace thread
|
||||
/// finishes its group: only `end_group` ends the hangup-ignoring grandchild.
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
fn end_group_ends_what_a_command_that_exited_by_itself_left() {
|
||||
|
||||
Reference in new issue
Block a user