ada/9480: Cannot "kill -TERM" programs that link the tasking runtime
oliver.kellogg@sysde.eads.net
oliver.kellogg@sysde.eads.net
Tue Jan 28 15:36:00 GMT 2003
>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:
More information about the Gcc-bugs
mailing list