1. I believe I have fixed all the login/logout 'broken pipe' errors
[spider.git] / src / client.c
index 382c852b1310752ddbcdf707b45b84b4ce3b530d..885b50efa3601a019e4038001dbb84f9787eaae5 100644 (file)
@@ -629,9 +629,11 @@ void term_timeout(int i)
 
 void terminate(int i)
 {
+#if 0
        if (node && send_Z && call) {
                send_msg(node, 'Z', "bye", 3);
        }
+#endif
        
        signal(SIGALRM, term_timeout);
        alarm(10);
@@ -850,9 +852,9 @@ lgotcall:
        send_msg(node, 'A', connsort, strlen(connsort));
        
        /* main processing loop */
-       while (!ending) {
+       while (ending == 0) {
                sel_run();
-               if (!ending) {
+               if (ending == 0) {
                        process_stdin();
                        process_node();
                }