process: New function process_search_path().
authorBen Pfaff <blp@nicira.com>
Fri, 20 Mar 2009 20:47:35 +0000 (13:47 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 20 Mar 2009 20:51:23 +0000 (13:51 -0700)
commitd469eebea6ad6371cf84335a5f50f28edee202e9
treeddb117880c4d529e6e08bbb4e2cec09f86e7a4c5
parentd3d32723b8101539e0fe7bceab07a696fb351431
process: New function process_search_path().

The process code already had the logic to search PATH for a file, but
it didn't export it, and it didn't return the executable that was found.
This exports it and returns the name, for the benefit of an upcoming
commit that wants to search the PATH for an executable only once per
program run.
lib/process.c
lib/process.h