summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
AgeCommit message (Collapse)Author
2007-06-11- Added more debug output to windows fork in order to help debug problems ↵burlex
encountered. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7270 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09- Removed un-needed event create at windows fork.burlex
* Fixed command line arguments when using fork under windows. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7266 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09Fixed issue preventing startup without --nofork under win32frostycoolslug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7265 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09Change some = "" to clear() and some == "" to .empty()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09Note to devs: We should be using std::string::clear() to empty a ↵brain
std::string, NOT somestr = "". somestr = "" involves a pointless memory allocation and assignment then de-allocation, whereas clear() just sets the length to 0. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7262 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08- Enabled minimal rebuild on all VS project files, this will reduce build ↵burlex
time on small changes, also removed the -Auto configurations as they are no longer used. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7261 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08- Eek, gotta make it look the same as *nix! Windows will now print the ↵burlex
process id of the new "forked" process. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7259 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08- Whoops.. forgot a return here.burlex
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7258 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08* Changed forking code, now the parent will attempt to retrieve the exit ↵burlex
code of the created process if startup fails for some reason. . Exit code 14 means the creation of the forked process under windows failed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7257 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08+ Added an *almost* unix-like fork system for windows. Insp will create a ↵burlex
secondary process now if nofork isn't specified and pipe its console output back to the originator's. If there is an error during startup, it will show too. * Fixed m_spanningtree project (cmd_rsquit was missing) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7255 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08Add Burlex to developersw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7254 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05Refactored InspIRCd::Duration(). The leetcode now lives!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7237 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03Probably fix 2nd compile issue on RH7 and add some checks which *should* ↵om
ensure none of this can break anything else git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7223 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Back out the tweaks i made here, keep only the clear screen stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7218 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Change the behaviour of insp in windows to keep its window open, with some ↵brain
status text in the title bar. It also clears the screen now on startup, see the wrapper for what a nasty amount of code it is to do such a simple thing to a windows console :( Also, add somewhat of a hack to cut down on allocation time taken to map windows fd to a posix style fd in iocp engine. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7217 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Add console mode patches from burlex, thanksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7216 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02And make it compile.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7214 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Chdir to bin dir on starting, allows relative paths to the bin dir to always ↵brain
work even when we're not started from our dir git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7213 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01Fix re-generation of 005 on rehashbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7202 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-25Choose the correct defines so that its not built too lean to compilebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7142 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-20Crash on restart in win32 fixed.brain
This means that the restart button in the gui, and /restart, both work now. Note, there are other bugs with the gui's restart button, the 'auto restart on crash' tries to boot the ircd! Dont use it! :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7075 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19Visual studio's ability to translate tabs to four spaces as default ↵brain
frustrates and peplexes tabnazi cat. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19Windows support. Tested and working to compile on freebsd and linux. Next ↵w00t
step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-16Add a progress meter for loading of core commands, fix broken implementation ↵brain
for <disabled commands> with a module command, as discovered by Casey in bug #293 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7038 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-14Someone forgot the ELIST token (his nick begins with B)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7024 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-13Move IsIdent() into helperfuncs.cpp along with IsNick/IsChannel.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7016 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11Refactor port binding, warning not yet tested fullybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6982 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-26When running in nofork, keep the tty open (we were closing it, which meant ↵brain
that while we were in -nofork we would see no logs!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6845 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-26Make error reporting work properly, it seemed to loose errors.brain
First change: Add a culling list of inspsockets waiting to be closed, so the close() is less likely to be called before the buffer is entirely empty. This seems to work well on my LAN. Second change: Add a SendError() method, rather than WriteLine("ERROR : ..."). This can be used to effect by also echoing out "Sent ERROR to %s: ..." onto the +l snomask meaning at least one end will always see the error even if the ERROR command is lost due to latency or design of the transport (e.g. ssl which may be writing during a read event etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6844 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-20Fix for "hanging" when controlling terminal is not a tty (nofork check and ↵brain
isatty checks lumped together by mistake) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6818 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-16Fix the restart stuff that bricker noticed while testing an feature requestbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6804 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-15Whoooooooooooooooooooops. Forgot to initialize a varaible, so wether insp ↵brain
starts up or not is random :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6801 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-15Add --version parameter to the binary bin/inspircd, i remember someone ↵brain
requesting this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6800 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-15Report the correct MAXMODES valuebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6796 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-07Set the signals to 'quick exit' before the fork, not straight after, because ↵brain
theres a very slight chance of minor race condition if the child process sends kill() before we signal() otherwise. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6758 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06Change wording of messagebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6754 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06Fix params passed on /restartbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6753 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06Increase sleep delay to 20, to provide reading time for the messagebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6752 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06Missing newlinebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6751 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06Add a facility to allow starting as root, bin/inspircd -runasrootbrain
if you actually specify this parameter, the daemon displays a huge warning in caps, then hangs for 5 secs to give you chance to ctrl+c if you made a mistake. If you dont ctrl+c it, it then starts normally. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6750 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-04Before i was rudely interrupted by a FUCKING *RAM FAILURE*, i was going to ↵brain
commit this patch which fixes the error message given out when a module cant be loaded. Thanks darix for spotting it first. :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6735 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-01Add -config parameter to bin/inspircd which allows a user to specify the ↵brain
config file on the commandline Note: This should really be a full pathname, and not a configuration file in the current directory. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6726 e03df62e-2008-0410-955e-edbf42e46eb7
2007-03-26Fix bug reported by darix where inspircd process returns 15 for successful ↵brain
startup rather than the correct 0 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6715 e03df62e-2008-0410-955e-edbf42e46eb7
2007-03-24Remove unused varbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6709 e03df62e-2008-0410-955e-edbf42e46eb7
2007-03-24Fix untidy debug outputbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6708 e03df62e-2008-0410-955e-edbf42e46eb7
2007-03-24Fix two things: (1) log gets replaced by a user fd after restart causing ↵brain
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
2007-03-16Wtf, ive found the source of the drift, it adds the old delta to the new!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6685 e03df62e-2008-0410-955e-edbf42e46eb7
2007-03-03Rebuild 005 on rehash. Tracker: bug #234peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6617 e03df62e-2008-0410-955e-edbf42e46eb7
2007-02-19Addition of feature request outlined in bug #195, suggested by Brickerbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6602 e03df62e-2008-0410-955e-edbf42e46eb7
2007-02-12Change around the order of InspIRCd::Cleanup(), as per bug #212brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6580 e03df62e-2008-0410-955e-edbf42e46eb7