From 894a8240414d751ca802b80ac08c4fd97dca50c2 Mon Sep 17 00:00:00 2001 From: Michael Warfield Date: Thu, 18 Feb 1999 04:33:06 +0000 Subject: [PATCH] Got to the bottom of another weird one... Piping the output of smbmount back to autofs/automount was causing the automount process to hang. Reason was that automount was depending on the pipe to close to continue on, rather than detecting the child signal. This occured with debug enabled and the daemon process was not closing the stdout process. Disabling debuging avoids the problem. Debugging is turned off in the cvs repository and a warning placed over the debugging option. (This used to be commit 329ceaee49fa0175f78873433bd942865309f633) --- source3/client/smbmount.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index c3f05fd8e6c..4b0cd7dff70 100644 --- a/source3/client/smbmount.c +++ b/source3/client/smbmount.c @@ -40,7 +40,11 @@ static struct smb_conn_opt conn_options; #endif /* Uncomment this to allow debug the smbmount daemon */ -#define SMBFS_DEBUG 1 +/* WARNING! This option is incompatible with autofs/automount because + it does not close the stdout pipe back to the automount + process, which automount depends on. This will cause automount + to hang! Use with caution! */ +/* #define SMBFS_DEBUG 1 */ pstring cur_dir = "\\"; pstring cd_path = ""; -- 2.34.1