comp.lang.ada
 help / color / mirror / Atom feed
* Start_Process_Search error detection
@ 2008-02-13  1:53 David Shochat
  2008-02-14  8:26 ` Jacob Sparre Andersen
  0 siblings, 1 reply; 4+ messages in thread
From: David Shochat @ 2008-02-13  1:53 UTC (permalink / 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





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

end of thread, other threads:[~2008-02-14 15:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13  1:53 Start_Process_Search error detection David Shochat
2008-02-14  8:26 ` Jacob Sparre Andersen
2008-02-14 11:06   ` David Shochat
2008-02-14 15:34     ` Jacob Sparre Andersen

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