Bug 40789 - Problem when ftp is put to a background and then to foreground
Summary: Problem when ftp is put to a background and then to foreground
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ftp
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-05-15 21:17 UTC by Need Real Name
Modified: 2007-04-18 16:33 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-05-15 21:17:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-05-15 21:17:40 UTC
If I use ftp (or pftp) client
ftp-0.17-6
go to some ftp site, start downloading (command mget *)
then do ctl-Z to suspend command, then bg % to put into background
the ftp will work in background.
when it finishes - it gets suspened (waithing for input)

The problem is:
now if I put ftp client to a foreground ( type %)
the output of ftp command on the screen is not right.

I can still type ftp commands (and they are executed OK)
but I can not see what I type. The output of ftp command
on screen becomes incorrect after suspend and resume.

Similar problem exists with some other commands when 
they get suspended.

Comment 1 Bernhard Rosenkraenzer 2001-05-17 11:50:04 UTC
This is because the terminal control codes are sent nowhere while the process 
is backgrounded.
There's no way to fix this short of rewriting readline.

If you need to get files without having ftp constantly bothering you, use 
ncftpget or ftpcopy instead of backgrounding the ftp process.




Note You need to log in before you can comment on or make changes to this bug.