Next: Creating Asynchronous Subprocesses, Previous: Creating Subprocesses—In General, Up: Processes [Index]
After a “synchronous process” is created, Emacs waits for the process to terminate before continuing. While Emacs waits for the synchronous subprocess to terminate, the user can quit by typing ‘C-g’. The first ‘C-g’ tries to kill the subprocess with a ‘SIGINT’ signal; but it waits until the subprocess actually terminates before quitting. If during that time the user types another ‘C-g’, that kills the subprocess instantly with ‘SIGKILL’ and quits immediately. The synchronous subprocess functions return an indication of how the process terminated.