summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-12-14 18:23:03 +0300
committerWolfy-J <[email protected]>2020-12-14 18:23:03 +0300
commit6ae6f8968188d5851e1929fff81e15cb730619b4 (patch)
treeed947361c0f108111f5bdb30c40dae242faf4207 /worker.go
parent2ba2b5e0c6f42d480600aa666ad0840ccee12a18 (diff)
- fixing tests
Diffstat (limited to 'worker.go')
-rwxr-xr-xworker.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/worker.go b/worker.go
index 5682f551..2fd77047 100755
--- a/worker.go
+++ b/worker.go
@@ -18,6 +18,14 @@ import (
"go.uber.org/multierr"
)
+// #include <stdio.h>
+// #include <errno.h>
+import "C"
+
+func init() {
+ C.setvbuf(C.stderr, nil, C._IONBF, 0)
+}
+
const (
// WaitDuration - for how long error buffer should attempt to aggregate error messages
// before merging output together since lastError update (required to keep error update together).