Larger changes to the daemon:
1998-12-09 Martin Baulig <martin@home-of-linux.org> Larger changes to the daemon: - Dropped all the unix domain socket stuff - we don't need it for connections on the local host, here we behave just like any normal application. - Added poptimization: use the --help parameter to get usage info - Made it a real daemon, fork into background and write to syslog. - It's now possible to invoke the daemon from inetd, you'll get GNU_SECURE authentication in this case. - Don't make this executable suid/sgid - if invoked as root it sets uid/gid to SERVER_UID/SERVER_GID as defined in server_config.h - Added missing features, so you can now really use this thing.
This commit is contained in:
committed by
Martin Baulig
parent
3daeda7307
commit
b1f8913794
@@ -33,6 +33,9 @@
|
||||
#include <glibtop/parameter.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/socket.h>
|
||||
#include <syslog.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@@ -57,6 +60,12 @@ extern void handle_slave_command __P((glibtop_command *, glibtop_response *, con
|
||||
extern void do_output __P((int, glibtop_response *, off_t, size_t, const void *));
|
||||
extern int do_read __P((int, void *, size_t));
|
||||
|
||||
extern void syslog_message __P((int, char *, ...));
|
||||
extern void syslog_io_message __P((int, char *, ...));
|
||||
|
||||
extern int enable_debug;
|
||||
extern int verbose_output;
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user