comp.lang.ada
 help / color / mirror / Atom feed
From: "Frank J. Lhota" <flhota.NOSPAM@ll.mit.edu>
Subject: Re: How to spawn, fork, and exec within Ada (Do you have small example program)
Date: Wed, 28 Jun 2006 09:53:34 -0400
Date: 2006-06-28T09:53:34-04:00	[thread overview]
Message-ID: <LSvog.1799$O5.386@llslave.llan.ll.mit.edu> (raw)
In-Reply-To: <87mzbypazz.fsf@ludovic-brenta.org>

Ludovic Brenta wrote:
> fork, exec, and spawn are specific to Unix and Unix-like systems; so
> the answer depends on your compiler and operating system.  If GNAT on
> Unix, GNU, or *BSD, look at GNAT.Expect.Non_Blocking_Spawn.

One should also point out that on the MS Windows systems, there is no OS 
call equivalent to the Unix "fork" or "exec" functions. The "spawn" 
functionality can be achieved using the Win32 / Win64 function 
"CreateProcess".

> You can also "routinely" call any C function from an Ada program, so
> if you insist, you can really fork and exec.  But that would be the
> wrong (error-prone) way of achieving the same result.
> 



  reply	other threads:[~2006-06-28 13:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1151434435.502270.265470@m73g2000cwd.googlegroups.com>
2006-06-27 20:50 ` How to spawn, fork, and exec within Ada (Do you have small example program) Jeffrey R. Carter
2006-06-27 21:03 ` Ludovic Brenta
2006-06-28 13:53   ` Frank J. Lhota [this message]
2006-06-28  2:41 ` Steve
     [not found]   ` <1151501695.077579.108560@i40g2000cwc.googlegroups.com>
2006-06-28 15:56     ` Martin Krischik
2006-06-28 20:42       ` Frank
2006-06-29  2:02     ` Steve
replies disabled

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