summaryrefslogtreecommitdiff
path: root/source3/smbd/notify_fam.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/notify_fam.c')
-rw-r--r--source3/smbd/notify_fam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/notify_fam.c b/source3/smbd/notify_fam.c
index b7f9a36332..bfef4ac871 100644
--- a/source3/smbd/notify_fam.c
+++ b/source3/smbd/notify_fam.c
@@ -432,7 +432,8 @@ fam_remove_notify(void * data)
* request.
*/
- if (info->generation == global_fc_generation) {
+ if ((FAMCONNECTION_GETFD(&global_fc) != -1)
+ && (info->generation == global_fc_generation)) {
DEBUG(FAM_TRACE, ("removing FAM notification for request %d\n",
info->req.reqnum));
FAMCancelMonitor(&global_fc, &(info->req));