FreeBSD Bugzilla – Attachment 16857 Details for
Bug 30764
PATCH: fetch(1) prints d/l status even if in background
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 664 bytes, created by
AnarCat
on 2001-09-23 19:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
AnarCat
Created:
2001-09-23 19:40:01 UTC
Size:
664 bytes
patch
obsolete
>--- /usr/src/usr.bin/fetch/fetch.c Tue Aug 21 13:15:38 2001 >+++ fetch.c Sun Sep 23 14:36:58 2001 >@@ -42,6 +42,8 @@ > #include <sysexits.h> > #include <unistd.h> > >+#include <sys/ioctl.h> >+ > #include <fetch.h> > > #define MINBUFSIZE 4096 >@@ -117,6 +119,19 @@ > { > struct timeval now; > >+ static pid_t pgrp = -1; >+ int ctty_pgrp; >+ >+ if (pgrp == -1) >+ pgrp = getpgrp(); >+ >+ /* >+ * do not print display (ie return) if we're not foreground process >+ */ >+ if (ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) == -1 || >+ ctty_pgrp != (int)pgrp) >+ return; >+ > if (!v_tty || !v_level) > return; > >This works well here.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30764
: 16857