summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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 85cbe9c1fa..58862406fe 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 we are not in the foreground process group
- if (tcgetpgrp(0) != getpgrp())
+ // skip status line output if stderr is not in the fg process group
+ if (tcgetpgrp(2) != getpgrp())
return false;
}
#endif