Next: , Previous: , Up: Processes   [Index]


I.1.2 Creating Synchronous Subprocesses

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.