---- FIX ---- client does not exit when cmd exits second connection makes crash 1330901344 W A is already executing a command 1330901344 exec failed *** glibc detected *** ./src/pg: double free or corruption (out): 0x00007fff1637b6e0 *** ==> need to cleanup connections / execs ---- TODO ---- cleanup dead connection cleanup dead execs cleanup dead route execs need to emulate a real terminal ssh 127.0.0.1 => 'Pseudo-terminal will not be allocated because stdin is not a terminal.' async sigalarm() read all remainingargv as client command use base64 conf file handling ---- LONGTERM FIX ---- maybe use libevent ... check reality of the following arguments + less code, cleaner code ... maybe + maybe more portable because it can use select() if poll() isn't there - dependency if linked dynamicaly, bigger size if static ---- LONGTERM FUNCTIONNALITIES ---- port forwarding but we could do it with nc socks proxy (write a separate lib in C) but we could do it with ssh