<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey all,<div><br></div><div>I have been having trouble killing a process in the application that I am currently working on, so I decided to make a simpler example using just basic ccl methods, and I experience the same problem.  I was wondering if anyone could help me understand what is going on.  My little program just makes a process which just prints to the console then sleeps in a loop, then I assign this process to a local variable, then I kill the process and print it out.  Often times, even after I have issues the command process-kill to the reference  to the process, the process continues printing.  Sometimes when I print the process after killing it, it says it is still active, sometimes it s says it is exhausted and sometimes it says it is reset.  According to the documentation I found about this method it is supposed to "<span class="Apple-style-span" style="font-family: Times; ">Causes a specified process to cleanly exit from any ongoing computation, and then exit.".  </span>Can anyone help me understand why this is not happening?   Here is my example program.  If you try it out make sure to run it many times because it will often work correctly on the first try.  Also, when you see the behavior I have been experiencing you will need to quit ccl to end the process.  </div><div><br></div><div><div>(defun make-a-process()</div><div>  (process-run-function</div><div>   '(:name "my-process" :priority 1)</div><div>   #'(lambda ()</div><div>       (loop</div><div>         (print "doing process things.")</div><div>         (print *current-process*)</div><div>         (sleep .01)))))</div><div><br></div><div>(defun process-test ()</div><div>  (let ((my-process</div><div>         (make-a-process)))</div><div>    (print "kill process")</div><div>    (process-kill my-process)</div><div>    (print *current-process*)</div><div>    (print "after kill")</div><div>    (print my-process)</div><div>    nil))</div><div><br></div><div>(process-test)</div></div></body></html>