From: Bastien Dejean Date: Sat, 22 May 2021 20:43:22 +0000 (+0200) Subject: Simplify comment X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=20e808cd348a600ea6702b83bd89b95544aa3a1b;p=bspwm.git Simplify comment --- 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); }