Knsupdate cleanup
Merge request reports
Activity
closes #366 (closed)
500 494 return ret; 501 495 } 502 496 503 static int knsupdate_process(knsupdate_params_t *params, FILE *fp) 497 static int process_lines(knsupdate_params_t *params, FILE *fp) 504 498 { 499 char *buf = NULL; 500 size_t buflen = 0; 501 int ret = KNOT_EOK; 502 503 /* Print first program prompt if interactive. */ 504 if (fp == NULL) { 505 /* Don't mess up stdout. */ 506 fprintf(stderr, "> "); Stderr should be unbuffered. I was inspired by this http://stackoverflow.com/questions/25820420/how-to-display-a-custom-prompt-during-the-execution-of-c-program/25828344#25828344. It seems that it works well
mentioned in issue #366 (closed)
Please register or sign in to reply