From 93433501021bf6df00df3135992ed021385cfce6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Jan 2007 08:49:09 +0000 Subject: r20699: This is an attempt to fix bug 4326. James, can you please confirm this and merge it to 3_0_24? For me it fixes the segfault. Thanks, Volker (This used to be commit a841b7659ba7b76b2da7993e1f4402aa0e11716f) --- source3/smbd/notify_fam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- cgit