2008-08-29

Expect 5.43 takes quite long when exiting

Expect 5.43 的 script 结束时总是很慢, 用 expect -d 发现最后有条 message:

write() failed to write anything - will sleep(1) and retry...
查了下 code, 在 exp_chan.c : ExpOutputProc() 中有个 sleep(1), 把它换成 usleep(10 * 1000) 就好了.

No comments: