From: David Shochat <shochatd@yahoo.com>
Subject: Start_Process_Search error detection
Date: Tue, 12 Feb 2008 19:53:01 -0600
Date: 2008-02-12T19:53:01-06:00 [thread overview]
Message-ID: <xrqdnQ1ik7jg0C_anZ2dnUVZ_tyknZ2d@giganews.com> (raw)
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
next reply other threads:[~2008-02-13 1:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 1:53 David Shochat [this message]
2008-02-14 8:26 ` Start_Process_Search error detection Jacob Sparre Andersen
2008-02-14 11:06 ` David Shochat
2008-02-14 15:34 ` Jacob Sparre Andersen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox