]> git.lizzy.rs Git - bspwm.git/commitdiff
Simplify comment
authorBastien Dejean <nihilhill@gmail.com>
Sat, 22 May 2021 20:43:22 +0000 (22:43 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Sat, 22 May 2021 20:43:22 +0000 (22:43 +0200)
src/subscribe.c

index e91ffec995a11ff0118afe7b9a2d16a21a44f6e1..328ca128e4153691a3c12d55a39b418d7b27d949 100644 (file)
@@ -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);
                }