summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-28 13:31:22 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-28 13:31:22 +0000
commit434c36b4267b2665780f1afbee2b7d7118bc3c01 (patch)
tree03f04557f7afb61132ed8be78c40065004968427 /src/common/socket.c
parent971beef1fc01e7137ba2fabe7eb9417e5076f711 (diff)
downloadhercules-434c36b4267b2665780f1afbee2b7d7118bc3c01.tar.gz
hercules-434c36b4267b2665780f1afbee2b7d7118bc3c01.tar.bz2
hercules-434c36b4267b2665780f1afbee2b7d7118bc3c01.tar.xz
hercules-434c36b4267b2665780f1afbee2b7d7118bc3c01.zip
- Changed write to send as suggested by TheUltraMage in:
http://www.eathena.ws/board/index.php?showtopic=105417 Hopefully that will take care of the SIGPIPE problem in Debian and cygwin. - Server name in core.c skipping '\\' characters. - Memory allocation functions using file,line,func from the invoking functions. - Other minor changes in malloc git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9344 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 1273677b6..f9262f424 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -253,7 +253,7 @@ static int send_from_fifo(int fd)
return 0;
}
#else
- len=write(fd,session[fd]->wdata,session[fd]->wdata_size);
+ len=send(fd, session[fd]->wdata, session[fd]->wdata_size, MSG_NOSIGNAL);
if (len == -1)
{
if (errno == ECONNABORTED)