Function: list-system-processes
list-system-processes is a function defined in process.c.
Signature
(list-system-processes)
Documentation
Return a list of numerical process IDs of all running processes.
If this functionality is unsupported, return nil.
If default-directory is remote, return process IDs of the respective remote host.
See process-attributes for getting attributes of a process given its ID.
Probably introduced at or before Emacs version 23.1.
Source Code
// Defined in /usr/src/emacs/src/process.c
{
Lisp_Object handler
= Ffind_file_name_handler (BVAR (current_buffer, directory),
Qlist_system_processes);
if (!NILP (handler))
return call1 (handler, Qlist_system_processes);
return list_system_processes ();
}