summaryrefslogtreecommitdiffstats
path: root/source/client/smbmount.c
diff options
context:
space:
mode:
authorMichael Warfield <mhw@samba.org>1999-02-18 04:33:06 +0000
committerMichael Warfield <mhw@samba.org>1999-02-18 04:33:06 +0000
commit329ceaee49fa0175f78873433bd942865309f633 (patch)
tree5f46a57c4f5becd47ba7250b173de7762a72c245 /source/client/smbmount.c
parent59f081069a58f6a070ed6016c06153d5e695da93 (diff)
downloadsamba-329ceaee49fa0175f78873433bd942865309f633.tar.gz
samba-329ceaee49fa0175f78873433bd942865309f633.tar.xz
samba-329ceaee49fa0175f78873433bd942865309f633.zip
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.
Diffstat (limited to 'source/client/smbmount.c')
-rw-r--r--source/client/smbmount.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/client/smbmount.c b/source/client/smbmount.c
index c3f05fd8e6c..4b0cd7dff70 100644
--- a/source/client/smbmount.c
+++ b/source/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 = "";