Hi, Since the lftp build by macports use up 100% CPU in Mac OS X 10.5.1, I decided to build it myself, because according to this message:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg02101.html force lftp to use select to emulate poll will fix this problem. After hacking into configure, I'm sure lib/poll.c is included in Makefile, but the lftp compiled by myself still use up 100% CPU. Here is a backtrace. It seems it just hang at read() after fcntl set the fd into O_NONBLOCK mode. (gdb) r Starting program: /usr/local/bin/lftp Reading symbols for shared libraries +++++++++++++...... done lftp :~> Program received signal SIGINT, Interrupt. 0x91fa8b42 in read$UNIX2003 () (gdb) bt #0 0x91fa8b42 in read$UNIX2003 () #1 0x00031141 in CharReader::Do () #2 0x0002f8d9 in SMTask::Schedule () #3 0x00004c05 in lftp_rl_getc () #4 0x000a5aba in rl_read_key () at input.c:411 #5 0x00095668 in readline_internal_char () at readline.c:422 #6 0x00095821 in readline (prompt=0x402830 "lftp :~> ") at readline.c:489 #7 0x00007022 in lftp_readline () #8 0x00003707 in ReadlineFeeder::NextCmd () #9 0x0000c012 in CmdExec::Do () #10 0x0002f8d9 in SMTask::Schedule () #11 0x000078a9 in Job::WaitDone () #12 0x00003413 in main () HTH. - Jiang
