From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8a0999bfe89e1b4f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-27 22:14:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "Steven Deller" Newsgroups: comp.lang.ada Subject: RE: Call to execvp in Rational Ada Date: Thu, 28 Nov 2002 00:15:14 -0600 Organization: Smooth Sailing LLC Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1038464043 82051 137.194.161.2 (28 Nov 2002 06:14:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 28 Nov 2002 06:14:02 +0000 (UTC) Return-Path: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <3DE50998.9050809@cogeco.ca> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:31274 Date: 2002-11-28T00:15:14-06:00 Peter, The results you are seeing are consistent with the UNIX execvp interface. You seem to have a mistaken expectation of the call to the UNIX execvp operation. Both exec and execvp are UNIX functions that will never return from a correct call -- in UNIX "exec" replaces your running process with the new process specified. The status is ONLY there in case the arguments are bogus. You may have meant to do a "fork and exec", but that has its own control issues and is not for the uninitiated. I suggest you look at the POSIX Ada (1003.5) calls for executing another process -- the descriptions are quite clear and the interface from Ada allows for safe operations. The Rational "execvp" is a direct interface to the UNIX system. It is intended for use ONLY by people that fully understand OS issues such as threads, exception handling, etc, and, in my opinion, has no business being in application code. The POSIX interface IS intended for application code, and is reasonably portable among the various Ada compiler vendors. Regards, Steven Deller > Peter Richtmyer wrote: > > I want to use Rational's "execvp". The following > > is my test code. test results are listed at the end. Anybody know > > what I am doing wrong? Or have an example of doing it right that I