comp.lang.ada
 help / color / mirror / Atom feed
* creating processes
@ 2004-02-14 23:00 Evangelista Sami
  2004-02-15 20:37 ` David C. Hoos
  0 siblings, 1 reply; 2+ messages in thread
From: Evangelista Sami @ 2004-02-14 23:00 UTC (permalink / raw)


Hello all

i have gnat 3.15p.
i have seen there are procedures and functions in gnat.os_lib to spawn
processes, wait for processes... is there a way to kill a process
previously created by a spawn call?

Sami Evangelista



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: creating processes
  2004-02-14 23:00 creating processes Evangelista Sami
@ 2004-02-15 20:37 ` David C. Hoos
  0 siblings, 0 replies; 2+ messages in thread
From: David C. Hoos @ 2004-02-15 20:37 UTC (permalink / raw)


Since Spawn blocks until the process completes execution, and
does not return a Process_ID, it makes no sense to provide a
mechanism to kill such a process.

Instead, you should use the Non_Blocking_Spawn function, and
then use a Pragma_Import of kill to send whatever signal to
the Process_ID returned by the Non_Blocking_Spawn call.

"Evangelista Sami" <evangeli@cnam.fr> wrote in message
news:5f59677c.0402141500.7032553e@posting.google.com...
> Hello all
>
> i have gnat 3.15p.
> i have seen there are procedures and functions in gnat.os_lib to spawn
> processes, wait for processes... is there a way to kill a process
> previously created by a spawn call?
>
> Sami Evangelista
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada-france.org
> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
>
>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-15 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-14 23:00 creating processes Evangelista Sami
2004-02-15 20:37 ` David C. Hoos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox