You can do something like:
(defun my-send-cmd (proc str)
(if (process-get proc 'my-waiting)
(process-put proc 'my-pending (append (process-get proc 'my-pending) (list str)))
(process-put proc 'my-waiting t)
(process-send-string proc str)))
, , `my-pending ' -nil, arg, , nil,
, , .
, , , , , , , , , , M-x report-emacs-bug.