2000-02-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 21 Feb 2000 15:56:37 +0000 (15:56 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 21 Feb 2000 15:56:37 +0000 (15:56 +0000)
From Philippe De Muyter  <phdm@macqel.be>

* event-loop.c (handle_file_event): In case of poll, enable
  printing of informational message if an error/exception is
  detected on the file descriptor.

gdb/ChangeLog
gdb/event-loop.c

index c362cc8..dcb4409 100644 (file)
@@ -1,3 +1,11 @@
+2000-02-21  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
+
+       From Philippe De Muyter  <phdm@macqel.be>
+
+       * event-loop.c (handle_file_event): In case of poll, enable
+       printing of informational message if an error/exception is
+       detected on the file descriptor.
+
 2000-02-21  Jim Kingdon  <kingdon@redhat.com>
 
        * MAINTAINERS (Misc): Clarify that yes, anyone can edit web pages.
index 1915156..dd849df 100644 (file)
@@ -697,12 +697,12 @@ handle_file_event (int event_file_desc)
            {
              /* Work in progress. We may need to tell somebody what
                 kind of error we had. */
-             /*if (error_mask_returned & POLLHUP)
-                printf_unfiltered ("Hangup detected on fd %d\n", file_ptr->fd);
-                if (error_mask_returned & POLLERR)
-                printf_unfiltered ("Error detected on fd %d\n", file_ptr->fd);
-                if (error_mask_returned & POLLNVAL)
-                printf_unfiltered ("Invalid fd %d\n", file_ptr->fd); */
+             if (error_mask_returned & POLLHUP)
+               printf_unfiltered ("Hangup detected on fd %d\n", file_ptr->fd);
+             if (error_mask_returned & POLLERR)
+               printf_unfiltered ("Error detected on fd %d\n", file_ptr->fd);
+             if (error_mask_returned & POLLNVAL)
+               printf_unfiltered ("Invalid or non-`poll'able fd %d\n", file_ptr->fd);
              file_ptr->error = 1;
            }
          else