Make sure TeX subprocess starts up properly to begin with. The version I use, texlive-2007 does not start properly unless getting some input, while at the same time the initial input before the "texput.tex" line seems to be lost.
2009-04-23 08:23:42 UTC in TeX daemon