This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ada/9480: Cannot "kill -TERM" programs that link the tasking runtime
- From: oliver dot kellogg at sysde dot eads dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 28 Jan 2003 14:59:56 -0000
- Subject: ada/9480: Cannot "kill -TERM" programs that link the tasking runtime
- Reply-to: oliver dot kellogg at sysde dot eads dot net
>Number: 9480
>Category: ada
>Synopsis: Cannot "kill -TERM" programs that link the tasking runtime
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 28 15:06:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Oliver M. Kellogg
>Release: gcc-3.2.1
>Organization:
>Environment:
RedHat Linux 8.0 (i686)
>Description:
A main program that merely contains a task type
declaration (but no task object) does not react to
the TERM signal.
OTOH, A main program without any tasking related
declarations reacts normally to the SIGTERM.
Here is the test program:
-- file: sigterm_ignored.adb
with Text_Io;
procedure Sigterm_Ignored is
task type Freerun;
-- NB: Only a task TYPE, not even a real task.
task body Freerun is
begin
null;
end Freerun;
begin
loop
text_io.put_line ("Here is the main program.");
delay 1.3;
end loop;
end Sigterm_Ignored;
>How-To-Repeat:
gnatmake the test program and start it.
Then try doing a "kill -TERM" on the process and witness
that the program is not terminated.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: