Function: stop-process
stop-process is a function defined in process.c.
Signature
(stop-process &optional PROCESS CURRENT-GROUP)
Documentation
Stop process PROCESS. May be process or name of one.
See function interrupt-process for more details on usage.
If PROCESS is a network or serial or pipe connection, inhibit handling
of incoming traffic.
Probably introduced at or before Emacs version 22.1.
Source Code
// Defined in /usr/src/emacs/src/process.c
{
if (PROCESSP (process) && (NETCONN_P (process) || SERIALCONN_P (process)
|| PIPECONN_P (process)))
{
struct Lisp_Process *p;
p = XPROCESS (process);
if (NILP (p->command)
&& p->infd >= 0)
delete_read_fd (p->infd);
pset_command (p, Qt);
return process;
}
#ifndef SIGTSTP
error ("No SIGTSTP support");
#else
process_send_signal (process, SIGTSTP, current_group, 0);
#endif
return process;
}