At 2004-05-31T184517+1200, dave wrote:
> Yes the term is CLOSED!

> i have in the past closed the lftp session (_not_ the term screen) and
> got a message continuing download in background).

Almost the same thing has happened here.  Your terminal has been closed,
so lftp will have been sent SIGHUP.  lftp completely ignores SIGHUP (at
least, while it is doing something like uploading or downloading).

Using ps(1) to inspect the process table while lftp is running in the
foreground in one of my terminals shows:

  PID TTY      STAT   TIME COMMAND
 9736 pts/110  S+     0:00 lftp

After killing the terminal, the process table looks like this:

  PID TTY      STAT   TIME COMMAND
 9736 ?        S      0:00 lftp

Note that the TTY column now has a '?' instead of a terminal name?  This
is because the program's controlling terminal has disappeared from under
it.

To answer your question regarding whether it is possible to 'get it
back', the answer is no.  There's no way to tell a process to reattach
to a controlling terminal once it enters this state.

If you want to detach from programs in the future, take a look at the
screeni(1) utility, as others have suggested.  screen will allow you to
detach and reattach to a terminal session at will.

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to