存档

文章标签 ‘SIGPIPE’

由SIGPIPE导致程序退出想到的

2009年7月24日 没有评论

这几天在写一个发送快照的客户端,写好后测试。刚开始,启动服务端,客户端启动,开始发送快照页面。观察数据,结果,一切正常。基本功能实现了。今天早上,想到如果服务端关闭,客户端的状态会怎么样呢?产生了这个想法,就马上来try一下,结果客户端程序直接退出了,也没有产生core dump文件。很诡异! 于是gdb之,发现是产生了信号SIGPIPE,恩这下明白了。 阅读全文…


Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in /home/wuzeshengpwmuqzeeas7h4eknug/wwwroot/wp-content/plugins/quickstats/quickstats.php on line 345

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/wuzeshengpwmuqzeeas7h4eknug/wwwroot/wp-content/plugins/quickstats/quickstats.php on line 345

Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in /home/wuzeshengpwmuqzeeas7h4eknug/wwwroot/wp-content/plugins/quickstats/quickstats.php on line 346

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/wuzeshengpwmuqzeeas7h4eknug/wwwroot/wp-content/plugins/quickstats/quickstats.php on line 346

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/wuzeshengpwmuqzeeas7h4eknug/wwwroot/wp-content/plugins/quickstats/quickstats.php on line 346