(defvar *daemon-monitor-process* nil "Process of background monitor.")
(defparameter *timeout* 60)
-(defclass channel ()
+(defclass log-channel ()
((name :initarg :name :reader c-name
:documentation "Name of channel.")
(streams :initarg :streams :reader streams
(let ((end (- (length (trailing-argument msg)) 1)))
;; end has been as low as 7
(when (< end 8)
- (warn "End is less than 8: `$A'." msg))
+ (warn "End is less than 8: `~A'." msg))
(output-event msg :action (first (arguments msg))
(subseq (trailing-argument msg) (min 8 end)
(- (length (trailing-argument msg)) 1)))))
(defun make-a-channel (name formats output)
- (make-instance 'channel
+ (make-instance 'log-channel
:name name
:streams (make-array (length formats) :initial-element nil)
:output-root (when (and (pathnamep output)
(add-private-log-entry nil "Calling create-logger [add-logger].~%")
(let ((logger
(do ((new-logger
- (mp:with-timeout (*timeout* nil)
+ (#-sbcl mp:with-timeout #-sbcl (*timeout* nil)
+ #+sbcl sb-ext:with-timeout #+sbcl *timeout*
(create-logger nick server :channels channels :output output
:logging-stream logging-stream :password password
:realname realname :username username
:unknown-log unknown-log
:formats formats
:async async))
- (mp:with-timeout (*timeout* nil)
+ (#-sbcl mp:with-timeout #-sbcl (*timeout* nil)
+ #+sbcl sb-ext:with-timeout #+sbcl *timeout*
(create-logger nick server :channels channels :output output
:logging-stream logging-stream :password password
:realname realname :username username