bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] bug #45790: wget prints it's progress even when backgroun


From: Piotr
Subject: Re: [Bug-wget] bug #45790: wget prints it's progress even when background
Date: Wed, 28 Sep 2016 20:08:15 +0200

I would like to avoid forcing users to hack like this ;).
Wget should print to std* when in fg and print to wget.log when in bg, no 
matter how user gets there.
I don't think getpgrp() == tcgetpgrp(STDOUT_FILENO) is heavy and should probaby 
be ok to check it when printing lines.

Piotr

28 wrz 2016 17:47 address@hidden napisał(a): > > "Wajda, Piotr" writes: > > The 
case with stopping wget is obvious. CTRL+Z and bg should make wget > > write to 
file and I can catch bg with SIGCONT. > > But I wonder what to do when after 
CTRL+Z and bg, user runs fg. In this > > case there's no signal between bg anf 
fg, > > Though the user could, instead of just "fg", do "fg", then Ctrl-Z, then 
> "fg" again.  The second "fg" would cause a SIGCONT, and wget could at > that 
point theck that it had been foregrounded.  Not elegant, but fairly > simple. > 
> Dale

reply via email to

[Prev in Thread] Current Thread [Next in Thread]