Commit Graph

49 Commits

Author SHA1 Message Date
Michael Jumper
6373580830 Pull logging prefix from program name from argv[0] 2012-03-15 22:23:55 -07:00
Michael Jumper
a1397c53dc Changed non-errors to info. 2012-03-15 19:29:02 -07:00
Michael Jumper
ab061e1417 Remove unnecessary newline from log messages. 2012-03-15 19:25:46 -07:00
Michael Jumper
8ff25f503a Use args list only once. Probably better to use an intermediate buffer anyway. 2012-03-15 19:24:16 -07:00
Michael Jumper
86bc39b65a Use guacd_log_*() for all logging. Replace use of syslog. Only use fprintf() for usage information. 2012-03-15 19:11:51 -07:00
Michael Jumper
9f24a3f377 New logging functions which log to both syslog and STDERR. 2012-03-15 19:08:12 -07:00
Michael Jumper
82694ec45f Use new form of guac_client_plugin_get_client(). 2012-03-13 15:53:08 -07:00
Michael Jumper
aecd6347e3 Restrict addresses returned for bind, improve logging. 2012-03-01 14:05:12 -08:00
Michael Jumper
27ba5e3122 Migrated to namespaced RUNNING state. 2011-12-24 22:51:31 -08:00
Michael Jumper
3e06b326d9 Added -b option to specify bind address, using getaddrinfo() for address and port + getnameinfo() for logging name and port used. 2011-12-10 23:17:25 -08:00
Michael Jumper
ac43e37399 Renamed function, removed now unnecessary thread data and prototyping. 2011-12-06 00:53:18 -08:00
Michael Jumper
fb74c24ec1 Removed thread.*, using pthreads directly. More renaming of guac to guacd. 2011-12-06 00:41:08 -08:00
Michael Jumper
7a18b397de Moved guac_client_stop() back into libguac 2011-12-05 20:43:07 -08:00
Michael Jumper
5401ffd8e4 Log PID, remove support for lack-of-fork, update #define naming. 2011-11-30 12:03:27 -08:00
Michael Jumper
c9388ee536 Removing forced sleep between message handling. Can cause excess delays if handle_messages handles only one message and there are multiple messages waiting / piling up independent of handle frequency. 2011-11-28 02:29:05 -08:00
Michael Jumper
d1b4ce00e1 Set guac_error* before calling client handlers 2011-11-27 16:39:46 -08:00
Michael Jumper
0daf07a742 More logging 2011-11-27 16:29:42 -08:00
Michael Jumper
f9f864815c Using guac_error_message 2011-11-27 16:07:04 -08:00
Michael Jumper
2d7b398c72 Init logging handlers in client. 2011-11-27 14:26:59 -08:00
Michael Jumper
9c5f1da646 Additional logging, moderate cleanup. 2011-11-26 22:26:39 -08:00
Michael Jumper
76e55c5a51 Corrected includes 2011-11-26 22:08:25 -08:00
Michael Jumper
07a40605cb Fixed double free (free'd wrong pointer) 2011-11-26 12:18:57 -08:00
Michael Jumper
4cf9f6b0ab Added logging to daemon. 2011-11-25 23:28:49 -08:00
Michael Jumper
f86c06684e Flush args instruction. 2011-11-25 16:42:46 -08:00
Michael Jumper
d8697631d0 Renamed io to socket (in vars) 2011-11-25 16:35:50 -08:00
Michael Jumper
c5ec3a71a3 Partial conversion to new logging, API, and naming conventions. 2011-11-25 16:30:17 -08:00
Michael Jumper
0a39a5d63d Added logging to client threads 2011-11-24 18:51:05 -08:00
Michael Jumper
66a0ff52ee Migration to new guac_read_instruction(), remove use of guac_free_instruction_data(). 2011-11-24 18:25:33 -08:00
Michael Jumper
0db81b73ac Migrated to new function defs with timeouts. 2011-11-23 00:45:43 -08:00
Michael Jumper
d4d2ba3af3 Moved thread API from libguac. 2011-11-23 00:23:53 -08:00
Michael Jumper
e4cbb8b4e8 Moved daemon functions from libguac 2011-11-23 00:01:27 -08:00
Michael Jumper
68855b795c Removing win32 from guacd. Too heavy. 2011-07-14 01:13:20 -07:00
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