After calling execve(), the previous unbuffered setting of stdout is disabled.
Change-Id: If53d87d1aeb1c600ea1605e003160c870f201710
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
int ret;
int fd;
- setbuf(stdout, NULL);
snprintf(buf, sizeof(buf), "STDOUT_%s", ident);
ret = connect_dlog(LOG_ID_MAIN, STDOUT_FILENO, buf, DLOG_INFO);
if (ret != 0)
int ret;
int fd;
- setbuf(stderr, NULL);
snprintf(buf, sizeof(buf), "STDERR_%s", ident);
ret = connect_dlog(LOG_ID_MAIN, STDERR_FILENO, buf, DLOG_WARN);
if (ret != 0)