Piotr <pwa...@gmail.net.pl> writes: > 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.
That makes sense, though I'd be careful to check for errors returned from tcgetpgrp(). Dale