[zorp-hu] hibauzenetek

Balazs Scheidler bazsi@balabit.hu
Fri, 11 May 2001 11:25:29 +0200


> > May  9 16:16:54 fw zorp-kintrol[20496]: (zorp-kintrol@shinwa.hu/nosession): Connection failed due to: Interrupted system call.
> 
> hmm... hanyas zorp-ot hasznalsz? a 0.8.1-ben lett fixalva ez a problema.

megneztem. a problema az, hogy a Zorp hibas error kodot irhat ki nehany
esetben. tehat az uzenet valojaban nem Interrupted system call, hanem
valoszinuleg Connection refused vagy valami hasonlo. A javitas itt van
attachban, ha zavaro, amugy a kovetkezo verzioban benne lesz.

Index: io.c
===================================================================
RCS file: /var/cvs/zorp-core/lib/io.c,v
retrieving revision 1.28.2.5
diff -u -r1.28.2.5 io.c
--- io.c	2001/04/17 14:44:52	1.28.2.5
+++ io.c	2001/05/11 09:23:24
@@ -204,7 +204,7 @@
   if (error)
     {
       /* connect failed */
-      z_log(NULL, CORE_ERROR, 1, "Connection failed due to: %m.");
+      z_log(NULL, CORE_ERROR, 1, "Connection failed due to: %s.", g_strerror(error));
       close(fd);
       fd = -1;
     }


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1