mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
15 lines
399 B
Plaintext
15 lines
399 B
Plaintext
--- progress.c.orig Sun Oct 4 00:40:24 2015
|
|
+++ progress.c Sun Oct 4 00:41:58 2015
|
|
@@ -75,7 +75,11 @@
|
|
static int is_foreground_fd(int fd)
|
|
{
|
|
int tpgrp = tcgetpgrp(fd);
|
|
+#if defined(__minix)
|
|
+ return tpgrp < 0 || tpgrp == getpid();
|
|
+#else
|
|
return tpgrp < 0 || tpgrp == getpgid(0);
|
|
+#endif /* defined(__minix) */
|
|
}
|
|
|
|
static int display(struct progress *progress, unsigned n, const char *done)
|