anchor.diff:  ;;; iSPAD - Jupyter kernel for SPAD clients (FriCAS, Axiom, OpenAxiom)
   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
   ;;; __author__ = "Kurt Pagani <nilqed@gmail.com>"
  -;;; __svn_id__ = "$Id: ispad.lisp 9 2015-09-16 9:23:11Z pagani $"
  +;;; __svn_id__ = "$Id: ispad.lisp 9 2015-10-24 3:28:52Z pagani $"
   ;;;
   ;;; Credits
   ;;; -------
  
positive.code: (defun start-heartbeat (socket)
    (let ((thread-id (bordeaux-threads:make-thread
  		    (lambda ()
  		      (format t "[Heartbeat] thread started~%")
  		      (loop
  			 (pzmq:with-message msg
  			   (pzmq:msg-recv msg socket)
  
negative.code: 		(let ((heartbeat-thread-id (start-heartbeat hb-socket)))
  		  ;; main loop
  		  (unwind-protect
  		       (format t "[Kernel] Entering mainloop ... ~%")
  		       (shell-loop shell)
  		    ;; clean up when exiting
  		    (bordeaux-threads:destroy-thread heartbeat-thread-id)
  