clone-process

clone-process is a compiled Lisp function in `simple.el'.

(clone-process PROCESS &optional NEWNAME)

Create a twin copy of PROCESS.
If NEWNAME is nil, it defaults to PROCESS' name;
NEWNAME is modified by adding or incrementing <N> at the end as necessary.
If PROCESS is associated with a buffer, the new process will be associated
with the current buffer instead.
Returns nil if PROCESS has already terminated.