Doing correct server initialization using `glibtop_set_parameter_l' and

1998-07-14  Martin Baulig  <martin@home-of-linux.org>

	* src/daemon/gnuserv.c: Doing correct server initialization
	using `glibtop_set_parameter_l' and `glibtop_init_r'.

	* src/daemon/main.c: Removed call to `glibtop_init_r'.

	* lib/open.c (glibtop_open_l): We now call the open function
	of the sysdeps directory (glibtop_open_r) for server method
	`GLIBTOP_METHOD_DIRECT'.

	* sysdeps/{linux, sun4, stub}/open.c: No longer `memset'
	server to zero.
This commit is contained in:
Martin Baulig
1998-07-14 08:36:23 +00:00
committed by Martin Baulig
parent aa04293fc3
commit ef693a93bc
7 changed files with 48 additions and 14 deletions

View File

@@ -117,19 +117,9 @@ handle_parent_connection (int s)
glibtop_response _resp, *resp = &_resp;
glibtop_command _cmnd, *cmnd = &_cmnd;
char parameter [BUFSIZ];
unsigned method;
pid_t pid;
void *ptr;
method = GLIBTOP_METHOD_UNIX;
glibtop_set_parameter_l (server, GLIBTOP_PARAM_METHOD,
&method, sizeof (method));
glibtop_set_parameter_l (server, GLIBTOP_PARAM_FEATURES,
&glibtop_server_features,
sizeof (glibtop_server_features));
fprintf (stderr, "Parent features = %lu\n", glibtop_server_features);
while (do_read (s, &cmnd, sizeof (glibtop_command))) {