From 20e808cd348a600ea6702b83bd89b95544aa3a1b Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Sat, 22 May 2021 22:43:22 +0200 Subject: [PATCH] Simplify comment --- src/subscribe.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/subscribe.c b/src/subscribe.c index e91ffec..328ca12 100644 --- a/src/subscribe.c +++ b/src/subscribe.c @@ -169,11 +169,7 @@ void prune_dead_subscribers(void) subscriber_list_t *sb = subscribe_head; while (sb != NULL) { subscriber_list_t *next = sb->next; - // To check if a subscriber's stream is still open and writable call - // write with an empty buffer and check the returned value. If the - // stream is not writable anymore (i.e. it has been closed because the - // process associated to this subscriber no longer exists) then write() - // will return -1. + // Is the subscriber's stream closed? if (write(fileno(sb->stream), NULL, 0) == -1) { remove_subscriber(sb); } -- 2.44.0