Instrumented hack fix with debug level 10 statements just in case :-).
authorJeremy Allison <jra@samba.org>
Fri, 20 Nov 1998 23:22:43 +0000 (23:22 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 20 Nov 1998 23:22:43 +0000 (23:22 +0000)
Jeremy.
(This used to be commit 10f51b85722141f99ffecc3f19a39de108400828)

source3/smbd/nttrans.c

index c1c82b48e32870f4fd8a54f3393030e2adb285d1..8aacfa38677b55ad3fabfaef2b142d0ba9b55fd9 100644 (file)
@@ -463,6 +463,7 @@ void fail_next_srvsvc_open(void)
 {
   fail_next_srvsvc = True;
   fail_time = time(NULL);
+  DEBUG(10,("fail_next_srvsvc_open: setting up timeout close of \\srvsvc pipe for print fix.\n"));
 }
 
 /****************************************************************************
@@ -490,10 +491,12 @@ static int nt_open_pipe(char *fname, connection_struct *conn,
        if(fail_next_srvsvc && (time(NULL) > fail_time + HACK_FAIL_TIME)) {
                fail_next_srvsvc = False;
                fail_time = (time_t)0;
+               DEBUG(10,("nt_open_pipe: End of timeout close of \\srvsvc pipe for print fix.\n"));
        }
 
        if(fail_next_srvsvc && strequal(fname, "\\srvsvc")) {
                fail_next_srvsvc = False;
+               DEBUG(10,("nt_open_pipe: Deliberately failing open of \\srvsvc pipe for print fix.\n"));
                return(ERROR(ERRSRV,ERRaccess));
        }