summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-04 05:26:22 -0400
committermidipix <writeonce@midipix.org>2018-08-04 05:26:22 -0400
commit23a7cebeb41463fbfc3c068b9b9981e892906d88 (patch)
treeffe403bfa63ce029b8b5d653d876357d44234d48 /src
parent630188da36dd048f74b27555263f4204f2b53462 (diff)
downloadmdso-23a7cebeb41463fbfc3c068b9b9981e892906d88.tar.bz2
mdso-23a7cebeb41463fbfc3c068b9b9981e892906d88.tar.xz
mdso_output_error_record(): use fdctx->fderr to determine annotation mode.
Diffstat (limited to 'src')
-rw-r--r--src/output/mdso_output_error.c4
1 files changed, 2 insertions, 2 deletions
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