Using GLIBTOP_GUILE' instead of
HAVE_GUILE' so one should be able to use
1998-08-06 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h: Using `GLIBTOP_GUILE' instead of `HAVE_GUILE' so one should be able to use libgtop without guile in an application even if guile is installed. * sysdeps/common/mountlist.c: Fixed some `xstrdup' problems. * lib/open.c: Now correctly reading server features for `GLIBTOP_METHOD_PIPE'. * sysdeps/freebsd: New directory.
This commit is contained in:
committed by
Martin Baulig
parent
2e454140f1
commit
0a7bd78704
@@ -131,7 +131,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
|
||||
close (server->input [1]);
|
||||
close (server->output [0]);
|
||||
|
||||
sprintf (version, "Libgtop server %s ready.\n",
|
||||
sprintf (version, "libgtop server %s ready.\n",
|
||||
LIBGTOP_VERSION);
|
||||
|
||||
glibtop_read_l (server, sizeof (nbytes), &nbytes);
|
||||
@@ -145,6 +145,10 @@ glibtop_open_l (glibtop *server, const char *program_name,
|
||||
if (memcmp (version, buffer, strlen (version)))
|
||||
glibtop_error_r (server, "server version is not %s",
|
||||
LIBGTOP_VERSION);
|
||||
|
||||
server->flags |= _GLIBTOP_INIT_STATE_SERVER;
|
||||
|
||||
server->features = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user