diff options
author | LAN-TW <lantw44@gmail.com> | 2013-10-13 02:37:06 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2013-10-13 02:37:06 +0800 |
commit | f2f664ec673e3984ea90d4da999b1ed728a585a1 (patch) | |
tree | 544b936293ce4441aaa8d7bc2f13c3243322bc21 /hw1/proc_r.c | |
parent | a2e6bfc8dcd86e1ef7827123950dea13040d2233 (diff) | |
download | sp2013-f2f664ec673e3984ea90d4da999b1ed728a585a1.tar sp2013-f2f664ec673e3984ea90d4da999b1ed728a585a1.tar.gz sp2013-f2f664ec673e3984ea90d4da999b1ed728a585a1.tar.bz2 sp2013-f2f664ec673e3984ea90d4da999b1ed728a585a1.tar.lz sp2013-f2f664ec673e3984ea90d4da999b1ed728a585a1.tar.xz sp2013-f2f664ec673e3984ea90d4da999b1ed728a585a1.tar.zst sp2013-f2f664ec673e3984ea90d4da999b1ed728a585a1.zip |
HW1: 修正訊息與增加重試機會、忽略 ftruncate 錯誤
Diffstat (limited to 'hw1/proc_r.c')
-rw-r--r-- | hw1/proc_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw1/proc_r.c b/hw1/proc_r.c index 46f03b1..12b6239 100644 --- a/hw1/proc_r.c +++ b/hw1/proc_r.c @@ -142,7 +142,7 @@ bool procconn(server* svr, request* req, int maxfd, errno != EAGAIN) { // fatal error, close the connection - request_msg (&req[i], "socket read: %s", strerror (errno)); + request_msg (&req[i], "read: %s", strerror (errno)); request_free (&req[i], svr); } continue; |