CHANGE detailed information about poll result
diff --git a/src/notification_server.c b/src/notification_server.c
index 759572b..91df83e 100644
--- a/src/notification_server.c
+++ b/src/notification_server.c
@@ -599,7 +599,6 @@
 
     DEBUG("Create notification_thread.");
     nc_recv_notif_dispatch(session, notification_fileprint);
-    DEBUG("Subscription finished.");
     return 0;
 
 operation_failed:
@@ -918,8 +917,11 @@
 
     if (n) {
         for (n = 0; n < count_pollfds; n++) {
-            if (pollfds[n].revents & (POLLHUP | POLLERR)) {
-                ERROR("notifications: poll pipe closed or error");
+            if (pollfds[n].revents & POLLHUP) {
+                ERROR("notifications: poll pipe closed");
+                return -1;
+            } else if (pollfds[n].revents & POLLERR) {
+                ERROR("notifications: poll pipe error");
                 return -1;
             } else if (pollfds[n].revents & (POLLIN | POLLOUT)) {
                 /*