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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f4e8c6faa68f2ed1,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 12 Feb 2008 19:53:01 -0600 From: David Shochat Subject: Start_Process_Search error detection Newsgroups: comp.lang.ada User-Agent: Pan/0.132 (Waxed in Black) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: Date: Tue, 12 Feb 2008 19:53:01 -0600 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-uzlc7BrkU+YJvE/ekAi+oNryU4p6ROy1d/vHY0JkTZlGdbqHbVeNfm3yIA2SIzZhtJMPiPwJmwu9Xm0!CRydfK7iIPRIhNaol2hjw44Nwyi+TMkfvoJ85v8PJJPHzvMeuG7Kghdm31dc5N0zMiy+arCNEw== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Xref: g2news1.google.com comp.lang.ada:19766 Date: 2008-02-12T19:53:01-06:00 List-Id: Posix/Ada, package Posix_Process_Primitives, includes a procedure Start_Process_Search which searches for the requested program using the value of the PATH environment variable. My question is, how do you detect that the search failed (or will fail)? The package spec we have is virtually devoid of documentation. Checking the returned process id does not work. I get a nonzero process id even when I pass a fictitious name. Also, no exception is raised. I could parse $PATH and check each directory, but there must be a better way. This is Apex on Solaris. -- David