From 922069afab3804acdd53b5daeef35e6a603d43b2 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 24 Mar 2007 18:50:40 +0000 Subject: Fix two things: (1) log gets replaced by a user fd after restart causing debug log to go to a user's status window (!) (2) restart failing due to segfault within libc (this is because some moron decided that stdin, stdout, and stderr should still be non-null if the files arent actually open!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6707 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 48260bd1f..11d1cf130 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -417,6 +417,7 @@ char* userrec::MakeHostIP() void userrec::CloseSocket() { + ServerInstance->Log(DEBUG,"Close user socket %d", this->fd); shutdown(this->fd,2); close(this->fd); } -- cgit v1.3.1-10-gc9f91