why SIGINT top stop the process, why was not SIGSTOP used ?

Daniel Jacobowitz drow@false.org
Tue Feb 10 16:42:00 GMT 2009

On Tue, Feb 10, 2009 at 08:34:54AM -0800, paawan oza wrote:
> Hello,
> I have been changing gdb.
> as gdb uses ctrl+c (send SIGINT) to stop the process......
> I am also doing the same.

GDB is not sending the SIGINT.  On most systems, GDB puts the process
in the foreground terminal process group, and the operating system
is responsible for sending the SIGINT.

Using SIGSTOP has some other weird effects on job control, especially
in threaded applications.

Daniel Jacobowitz

More information about the Gdb mailing list