Hmm. I wonder if that assert is obsolete. If I recall correctly, if you run amuled in full daemon mode, it closes stdin and stdout. Therefore, it is likely that fds less than or equal to 2 will in fact be used for sockets or the like. However, I don't think it explains the failure of amulegui to connect.