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
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ftp   
(Show other bugs)
Version: 7.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: David Lawrence
Depends On:
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:
Story Points: ---
Clone Of:
Last Closed: 2001-05-15 21:17:44 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Need Real Name 2001-05-15 21:17:40 UTC
If I use ftp (or pftp) client
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.