On my 2.5.6 release, if I'm running gstat on a host where gmond is not
running, gstat segfault !
Here come a very small patch that avoid this annoying behaviour.
Regards,
--
Erwan Velu
Linux Cluster Distribution Project Manager
Mandrakesoft
43 rue d'aboukir 75002 Paris
Phone Number : +33 (0) 1 40 41 17 94
Fax Number : +33 (0) 1 40 41 92 00
Web site : http://www.mandrakesoft.com
OpenPGP key : http://www.mandrakesecure.net/cks/
--- lib/gexec_funcs.c~ 2004-01-26 23:54:04.000000000 +0100
+++ lib/gexec_funcs.c 2004-06-17 15:09:41.713715371 +0200
@@ -250,7 +250,7 @@
}
gmond_socket = g_tcp_socket_connect( ip, port );
- if (! gmond_socket->sockfd )
+ if ((gmond_socket == NULL) || (! gmond_socket->sockfd ))
{
gexec_errno = 3;
return gexec_errno;