Durga Deep Tirunagari writes:
> if (scds_initialize(&scds_handle, argc, argv) != 0) {
[...]
> But for example we get a handle to the underlying database, what happens to
> the handle example scds_handle in the above case.
None of the memory related to it exists anymore. It's immaterial.
However, it's important to understand what your libraries are doing
for you. If that "handle" actually represents an underlying file
descriptor used by the library, and if the library doesn't arrange to
have the file descriptor closed on exec, then you'll end up
unwittingly passing that open file descriptor to the new executable.
That might not be what you wanted. However, it depends entirely on
how the library itself (the thing that implements scds_initialize) is
constructed.
> Also how about the dynamically allocated memory pathname. where do I free it
> ?. Any help will be greatly appreciated
You don't. The memory is just gone.
--
James Carlson, Solaris Networking <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
_______________________________________________
opensolaris-discuss mailing list
[email protected]