Created
May 2, 2020 18:19
-
-
Save jepler/c492240a3e59cea50a5f0233810c2664 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 4cbff020a27f4e50653d4c3e6c79338b93874edc Mon Sep 17 00:00:00 2001 | |
From: Jeff Epler <jepler@gmail.com> | |
Date: Sat, 2 May 2020 13:18:46 -0500 | |
Subject: [PATCH 1/2] rs274ngc: Set standard handles to unbuffered | |
--- | |
src/emc/sai/driver.cc | 3 +++ | |
1 file changed, 3 insertions(+) | |
diff --git a/src/emc/sai/driver.cc b/src/emc/sai/driver.cc | |
index 0c517b21fb..447e21c00d 100644 | |
--- a/src/emc/sai/driver.cc | |
+++ b/src/emc/sai/driver.cc | |
@@ -551,6 +551,9 @@ int main (int argc, char ** argv) | |
int log_level = -1; | |
std::string interp; | |
+ setvbuf(stdout, NULL, _IONBF, 0); | |
+ setvbuf(stderr, NULL, _IONBF, 0); | |
+ | |
do_next = 2; /* 2=stop */ | |
block_delete = OFF; | |
print_stack = OFF; | |
-- | |
2.20.1 | |
From eecb976b5f461c5bbd259686c8dfd3b4b76c9d52 Mon Sep 17 00:00:00 2001 | |
From: Jeff Epler <jepler@gmail.com> | |
Date: Sat, 2 May 2020 13:19:11 -0500 | |
Subject: [PATCH 2/2] tests: remap/introspect: show using PYTHONUNBUFFERED= to | |
un-buffer python | |
This flag supposedly affects both python2 and python3 | |
--- | |
tests/remap/introspect/test.sh | 1 + | |
1 file changed, 1 insertion(+) | |
diff --git a/tests/remap/introspect/test.sh b/tests/remap/introspect/test.sh | |
index cc74b3d934..6a88018526 100755 | |
--- a/tests/remap/introspect/test.sh | |
+++ b/tests/remap/introspect/test.sh | |
@@ -1,3 +1,4 @@ | |
#!/bin/bash | |
+export PYTHONUNBUFFERED=x | |
rs274 -i test.ini -n 0 -g test.ngc 2>&1 | |
exit $? | |
-- | |
2.20.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment