lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.08k stars 159 forks source link

[BUG] Lftp commands leave defunct processes #689

Open sernad opened 1 year ago

sernad commented 1 year ago

Hi happy new year :D, we recently noticed that after running commands such as:

Some ssh and sh processes linger after the execution (See image below). The file transfer and directories creation works OK, the problem are the defunct processes image

We have tested:

  1. Running the lftp commands in a container to only see the new processes and isolate other variables
  2. Running the commands with the -c parameter
  3. Passing parameters in a file
  4. Upgrading lftp to the latest version (4.9.2 at the time of this post)

image

alexkorsun commented 11 months ago

We noticed the same issue on our end. Over time the number of processes goes to thousands, so they don't quit. As an example, there is the command:

lftp -c 'set sftp:auto-confirm yes; set sftp:connect-program "ssh -a -x -i local-private-key" ; open -u "XXX","YYY" sftp://sftp-1:22; cls -1 --date --size -h --perms --block-size 1 ; exit'

image