wins replication

TAKAHASHI Motonobu monyo at samba.org
Sat Jan 26 11:09:01 GMT 2002


This patch fixes this internal error:

[2002/01/27 02:59:12, 0] lib/util_sock.c:set_socket_options(164)
  Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor)
[2002/01/27 02:59:12, 0] lib/util_sock.c:set_socket_options(164)
  Failed to set socket option TCP_NODELAY (Error Bad file descriptor)
[2002/01/27 02:59:12, 0] lib/fault.c:fault_report(37)
  ===============================================================
[2002/01/27 02:59:12, 0] lib/fault.c:fault_report(38)
  INTERNAL ERROR: Signal 11 in pid 9659 (3.0-alpha13)
  Please read the file BUGS.txt in the distribution
[2002/01/27 02:59:12, 0] lib/fault.c:fault_report(40)
  ===============================================================
[2002/01/27 02:59:12, 0] lib/util.c:smb_panic(1124)
  PANIC: internal error

=====
--- ../../../../cvs.samba/samba/source/wrepld/server.c  Sun Jan 27
04:00:38 2002
+++ wrepld/server.c     Sun Jan 27 03:59:53 2002
@@ -404,6 +404,7 @@
 
                                /* accept and add the new socket to
the listen set */
                                new_s=accept(s, &addr, &in_addrlen);
+               if (new_s > 0) {
 
                                DEBUG(5,("listen_for_wins_packets: new
connection, old: %d, new : %d\n", s, new_s));
 
@@ -411,7 +412,7 @@
                                set_socket_options(new_s,
user_socket_options);
                                FD_SET(new_s, listen_set);
                                add_fd_to_sock_array(new_s);
+       }
                        }
                }
=====

but still freeze at server.c:400, FD_ISSET()...

-----
TAKAHASHI, Motonobu(monyo)         monyo at samba.org
Samba Team - http://samba.org/     Samba-JP - http://www.samba.gr.jp/  
JWNTUG - http://www.jwntug.or.jp/  Analog-JP - http://www.jp.analog.cx/
MCSE(NT40,W2K), SCNA, CCNA, Turbo-CI




More information about the samba-technical mailing list