If I terminate the Xorg server with a SIGINT signal (eg. when I press Ctrl+C), what signal does it send to its clients?
What signal does X send to its clients when it receives SIGINT?
xorg;x11;signals;exit
The X server doesn't send a signal to its clients. This wouldn't be possible in general since the client and the server might not even be running on the same machine.Communication between the server and the client goes through a socket. When the server dies, its end of the socket is closed. It's up to the client application to decide how to react to that; most print an error message and terminate.If the client is a terminal emulator, then when it terminates, it sends SIGHUP to its controlling process, which is usually a shell. The shell in turn sends SIGHUP to the main process of each foreground or background job.