(defcustom riece-async-server-program
'("\
socket = TCPSocket.new(" host ", " service ")
-$stdout.write(\"NOTICE CONNECTED\r\n\")
+$stdout.write(\"NOTICE CONNECTED #{$$}\r\n\")
$stdout.flush
loop do
rfds, = select([socket, $stdin])
(while (and (eq (process-status process) 'run)
(progn
(goto-char (point-min))
- (not (looking-at "NOTICE CONNECTED"))))
+ (not (looking-at (format "NOTICE CONNECTED %d"
+ (process-id process))))))
(accept-process-output process))))
process))