syslog(LOG_ERR, "ttloop: peer died: %m"); is a little console spammingly excessive. Switch to LOG_INFO.