[education/rkward] rkward/rbackend: Make sure to sync up with stdout/stderr output, when a command has finished

Thomas Friedrichsmeier null at kde.org
Mon Apr 11 12:09:33 BST 2022


Git commit 457b74d64385c0ef94f5d93245757decbecbd66a by Thomas Friedrichsmeier.
Committed on 11/04/2022 at 11:09.
Pushed by tfry into branch 'master'.

Make sure to sync up with stdout/stderr output, when a command has finished

M  +1    -0    rkward/rbackend/rkrbackend.cpp

https://invent.kde.org/education/rkward/commit/457b74d64385c0ef94f5d93245757decbecbd66a

diff --git a/rkward/rbackend/rkrbackend.cpp b/rkward/rbackend/rkrbackend.cpp
index 6f2d0699..e871640b 100644
--- a/rkward/rbackend/rkrbackend.cpp
+++ b/rkward/rbackend/rkrbackend.cpp
@@ -1525,6 +1525,7 @@ void RKRBackend::commandFinished (bool check_object_updates_needed) {
 	}
 	clearPendingInterrupt ();	// Mutex must be unlocked for this!
 
+	fetchStdoutStderr(true);
 	if (current_command->type & RCommand::CCOutput) printAndClearCapturedMessages (current_command->type & RCommand::Plugin);
 	current_command->status -= (current_command->status & RCommand::Running);
 	current_command->status |= RCommand::WasTried;


More information about the rkward-tracker mailing list