From 23a7cebeb41463fbfc3c068b9b9981e892906d88 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 4 Aug 2018 05:26:22 -0400 Subject: mdso_output_error_record(): use fdctx->fderr to determine annotation mode. --- src/output/mdso_output_error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/output') diff --git a/src/output/mdso_output_error.c b/src/output/mdso_output_error.c index 328c5cf..9ae5e30 100644 --- a/src/output/mdso_output_error.c +++ b/src/output/mdso_output_error.c @@ -186,7 +186,7 @@ int mdso_output_error_record( else if (dctx->cctx->drvflags & MDSO_DRIVER_ANNOTATE_ALWAYS) return mdso_output_error_record_annotated(dctx,erri); - else if (isatty(STDERR_FILENO)) + else if (isatty(mdso_driver_fderr(dctx))) return mdso_output_error_record_annotated(dctx,erri); else @@ -223,7 +223,7 @@ int mdso_output_error_vector(const struct mdso_driver_ctx * dctx) else if (dctx->cctx->drvflags & MDSO_DRIVER_ANNOTATE_ALWAYS) return mdso_output_error_vector_annotated(dctx); - else if (isatty(STDERR_FILENO)) + else if (isatty(mdso_driver_fderr(dctx))) return mdso_output_error_vector_annotated(dctx); else -- cgit v1.2.3