summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/mp_msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mp_msg.c b/core/mp_msg.c
index 58862406fe..e06d53c0d9 100644
--- a/core/mp_msg.c
+++ b/core/mp_msg.c
@@ -111,8 +111,8 @@ int mp_msg_test(int mod, int lev)
{
#ifndef __MINGW32__
if (lev == MSGL_STATUS) {
- // skip status line output if stderr is not in the fg process group
- if (tcgetpgrp(2) != getpgrp())
+ // skip status line output if stderr is a tty but in background
+ if (isatty(2) && tcgetpgrp(2) != getpgrp())
return false;
}
#endif