projects
/
tedtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
293d7a6
)
fix tlog call
author
teodor
<teodor>
Sun, 26 Sep 2004 17:44:55 +0000
(17:44 +0000)
committer
teodor
<teodor>
Sun, 26 Sep 2004 17:44:55 +0000
(17:44 +0000)
tcp.c
patch
|
blob
|
history
diff --git
a/tcp.c
b/tcp.c
index
0273787
..
d4204a1
100644
(file)
--- a/
tcp.c
+++ b/
tcp.c
@@
-146,7
+146,7
@@
setlinger( TC_Connection *cs ) {
ling.l_onoff = ling.l_linger = 0;
if (setsockopt(cs->fd, SOL_SOCKET,SO_LINGER,(char *)&ling,sizeof(ling))==-1) {
ling.l_onoff = ling.l_linger = 0;
if (setsockopt(cs->fd, SOL_SOCKET,SO_LINGER,(char *)&ling,sizeof(ling))==-1) {
- tlog(TL_ALARM,"setsockopt: LINGER %s:%d - %s",inet_ntoa(cs->serv_addr.sin_addr),
+ tlog(TL_ALARM,"setsockopt: LINGER %s:%d - %s",inet_ntoa(cs->serv_addr.sin_addr),
ntohs(cs->serv_addr.sin_port),
strerror(errno));
shutdown(cs->fd,SHUT_RDWR);
close(cs->fd);
strerror(errno));
shutdown(cs->fd,SHUT_RDWR);
close(cs->fd);