Skip to content

Commit 15fae8f

Browse files
committed
Clarify Popen move assignment cleanup
1 parent 80752a3 commit 15fae8f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

include/stdcorelib/support/popen.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ namespace stdc {
185185
Popen();
186186
~Popen();
187187

188-
/// Moving takes the child, its pipes and its settings across. Assigning over a Popen
189-
/// whose child is still running ends that child first.
188+
/// Moving takes the child, its pipes and its settings across. Move assignment destroys
189+
/// the destination's previous state immediately. A running child owned by that state is
190+
/// killed and waited for then, while a detached child keeps running.
190191
///
191192
/// \note A Popen that has been moved from holds nothing and is only good for being
192193
/// destroyed or assigned to.

0 commit comments

Comments
 (0)