Revert "pthreadpool: reset monitor_fd after calling tevent_fd_set_auto_close()"
authorRalph Boehme <slow@samba.org>
Sun, 23 Dec 2018 08:12:10 +0000 (09:12 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 11 Jan 2019 22:11:12 +0000 (23:11 +0100)
This reverts commit f68b5ee75f002ed542a8423070fb01e3b0e83f65.

See the discussion in

https://lists.samba.org/archive/samba-technical/2018-December/131731.html

for the reasoning behind this revert.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/pthreadpool/pthreadpool_tevent.c

index 12148f1..7088202 100644 (file)
@@ -719,7 +719,6 @@ static int pthreadpool_tevent_register_ev(
                        return ENOMEM;
                }
                tevent_fd_set_auto_close(glue->fde);
-               monitor_fd = -1;
        }
 
        /*