Commit Graph

17 Commits

Author SHA1 Message Date
Michael Jumper
66c1144d4e If fork()ing, parent process must close child's socket fd. Child close() is not sufficient as both parent and child have a reference to the same socket fd, and fd will never be free'd if close() is not called from both processes. 2011-07-12 14:43:57 -07:00
Michael Jumper
d1759acca9 Fixed pointer warnings on POSIX and win32 2011-04-21 23:49:14 -07:00
Michael Jumper
4e1e693c2d Working win32 port 2011-04-21 15:54:29 -07:00
Michael Jumper
03bbc76145 Use fork for connection handlers (preferrably), fix memory leak 2011-03-20 00:21:33 -07:00
Michael Jumper
ec2d9f6918 Using new log functions 2011-03-19 17:13:33 -07:00
Michael Jumper
b52a49d7b0 Ignore SIGPIPE (force checking of EPIPE instead). 2011-03-19 16:50:18 -07:00
Michael Jumper
1b326b9cfb Detach main thread. 2011-03-19 00:59:14 -07:00
Michael Jumper
5d13535fb4 Working LSB startup script. 2011-02-27 20:27:12 -08:00
Michael Jumper
efcfa12fe6 Changing to MPL/GPL/LGPL tri-license 2011-02-15 18:48:02 -08:00
Michael Jumper
1c84d1aecf Fixed fork() detection 2011-02-10 23:57:38 -08:00
Michael Jumper
5458ba05b5 Cleaned up daemon.c 2011-02-10 23:47:46 -08:00
Michael Jumper
7d1215e8c4 Thread support for MinGW32 2011-02-10 01:17:31 -08:00
Michael Jumper
e5074c2c58 Cross-platform close socket macro, init winsock if MINGW32, MINGW32 support(ish) for strerror 2011-02-10 00:27:31 -08:00
Michael Jumper
d7b1bc8dae Allow compile even if fork() and pthreads not present. 2011-02-08 19:58:26 -08:00
Michael Jumper
55f5755fc3 Calling setsockopt to allow reuse of socket. 2011-01-21 10:01:49 -08:00
Michael Jumper
e45c8be4da guacd should fork self into background, like any self-respecting daemon. 2010-12-17 17:26:57 -08:00
Michael Jumper
7e5d3276c0 More renaming 2010-12-08 13:14:04 -08:00