[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Writing output to different processes

I have the feeling this is a silly question with a bleeding obvious answer,
but i'm not really sure how to look up said answer, so here goes:

I have some udp communication software that talks Symbolics to Symbolics and
Symbolics to Sun.  The server sends out heartbeats to the client (always a
Symbolics).  If a heartbeat isn't received every n seconds, the client
prints a message to the operator and quits the application.

To accomplish this, I do a process-run-function on the heartbeat checker
function.  If the *hb-recvd* variable is set during the interval, the 
process kills itself (using process-abort on *current-process*).  IF the
variable is not set, the program prints a message to the operator. 
Currently, the message to the operator is printed in the HEARTBEAT-TIMEOUT
background stream not to the window from which i invoke the program, causing
the operator to Function-0-S in order to see it.  How do i get the output
to print to the main window (which is, in this case, Dynamic Lisp Listener 1)?
I would like to print the message to the main window then issue another
process-abort.  If i issue a process abort now with (format t "..."), the
operator will never see the message.  I could keep the id of the process outside
of this function and kill it before exiting, but there may be multiple processes
running and it would be easier to kill in the function and use *current-process*.  Any suggestions?