* why SIGINT top stop the process, why was not SIGSTOP used ?
@ 2009-02-10 16:35 paawan oza
2009-02-10 16:42 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: paawan oza @ 2009-02-10 16:35 UTC (permalink / raw)
To: gdb
Hello,
I have been changing gdb.
as gdb uses ctrl+c (send SIGINT) to stop the process......
I am also doing the same.
but I have observed with gdb-6.7
that if process has blocked SIGINT, then actually gdb will not get SIGINT back.
I think this mechanism has been there for a long time.
my doubt is : why is this design of SIGINT?
why can not we use SIGSTOP ? because process cant block SIGSTOP.
though default gdb is configured to pass signal SIGSTOP (we can set it to 0)
but instead of SIGINT, cant we use SIGSTOP to stop the process ?
Regards,
..Paawan.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: why SIGINT top stop the process, why was not SIGSTOP used ?
2009-02-10 16:35 why SIGINT top stop the process, why was not SIGSTOP used ? paawan oza
@ 2009-02-10 16:42 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2009-02-10 16:42 UTC (permalink / raw)
To: paawan oza; +Cc: gdb
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
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-10 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-10 16:35 why SIGINT top stop the process, why was not SIGSTOP used ? paawan oza
2009-02-10 16:42 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox