[slime-cvs] CVS slime

CVS User sboukarev sboukarev at common-lisp.net
Wed Feb 20 17:33:14 UTC 2013


Update of /project/slime/cvsroot/slime
In directory tiger.common-lisp.net:/tmp/cvs-serv19470

Modified Files:
	ChangeLog slime.el 
Log Message:
* slime.el (slime-attempt-connection): Don't run the timer with a
repeat argument, slime-attempt-connection will reinstantiate the
timer if needed, otherwise it can be a possible source of race
conditions.


--- /project/slime/cvsroot/slime/ChangeLog	2013/02/13 07:27:14	1.2393
+++ /project/slime/cvsroot/slime/ChangeLog	2013/02/20 17:33:14	1.2394
@@ -1,3 +1,10 @@
+2013-02-20  Stas Boukarev  <stassats at gmail.com>
+
+	* slime.el (slime-attempt-connection): Don't run the timer with a
+	repeat argument, slime-attempt-connection will reinstantiate the
+	timer if needed, otherwise it can be a possible source of race
+	conditions.
+
 2013-02-13  Helmut Eller  <heller at common-lisp.net>
 
 	* swank-allegro.lisp (eval-in-frame): debugger:frame-var-name can
--- /project/slime/cvsroot/slime/slime.el	2013/02/13 07:27:14	1.1427
+++ /project/slime/cvsroot/slime/slime.el	2013/02/20 17:33:14	1.1428
@@ -1318,7 +1318,7 @@
   "Start a Swank server in the inferior Lisp and connect."
   (slime-delete-swank-port-file 'quiet)
   (slime-start-swank-server process args)
-  (slime-read-port-and-connect process nil))
+  (slime-read-port-and-connect process))
 
 (defvar slime-inferior-lisp-args nil
   "A buffer local variable in the inferior proccess.
@@ -1376,9 +1376,8 @@
        (message (message "Unable to delete swank port file %S"
                          (slime-swank-port-file)))))))
 
-(defun slime-read-port-and-connect (inferior-process retries)
-  (slime-cancel-connect-retry-timer)
-  (slime-attempt-connection inferior-process retries 1))
+(defun slime-read-port-and-connect (inferior-process)
+  (slime-attempt-connection inferior-process nil 1))
 
 (defun slime-attempt-connection (process retries attempt)
   ;; A small one-state machine to attempt a connection with
@@ -1409,7 +1408,7 @@
            (assert (not slime-connect-retry-timer))
            (setq slime-connect-retry-timer
                  (run-with-timer
-                  0.3 0.3
+                  0.3 nil
                   #'slime-timer-call #'slime-attempt-connection
                   process (and retries (1- retries))
                   (1+ attempt)))))))
@@ -6385,7 +6384,7 @@
   (let ((id (get-text-property (point) 'thread-index))
         (file (slime-swank-port-file)))
     (slime-eval-async `(swank:start-swank-server-in-thread ,id ,file)))
-  (slime-read-port-and-connect nil nil))
+  (slime-read-port-and-connect nil))
 
 (defun slime-thread-debug ()
   (interactive)





More information about the slime-cvs mailing list