login
Header Space

 
 

<pre>....</pre>

September 21, 2008 - 2:35pm

you should enclose program code in <pre>....</pre> to make it readable and non-damaged. the < character should be replaced by &lt; to not get the rest of the line parsed as an invalid html tag. without indentation and with parts of the code missing few people will be inclined to read your code.

generally you should check if some function call/syscall failed just before the hang. there are still unchecked calls (e.g. close(), send()) and you could try a debugging mode with more logging and/or strace to get the full picture.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <quote> <pre> <hr> <br> <p> <img> <blockquote> <font> <tt> <table> <tr> <i>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

speck-geostationary