Permalink
Browse files

randomtest-stdin.c: setvbuf(stdin, (char*) NULL, _IONBF, 0)

  • Loading branch information...
dcieslak committed Dec 17, 2015
1 parent b6a5166 commit 6a03f1f1c706cce7da546492e15462cf7f96899d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/probes/c/randomtest-stdin.c
@@ -11,7 +11,7 @@ int main(int, char**) {
char rawStacktrace[BUFSIZE];
FILE* memoryFile = fmemopen(rawStacktrace, BUFSIZE, "wt");
setlinebuf(stdin);
setvbuf(stdin, (char*) NULL, _IONBF, 0);
while ((read = getline(&line, &len, stdin)) != -1) {
if (read == 0 || line[0] == '\n') {

0 comments on commit 6a03f1f

Please sign in to comment.