Hello, I noticed your patch to this problem, so I decided to review it.
It looks good to me. Other solutions are also possible, but your solution looks better. However, I notice the cleanup() routine still calls pclose(...). This has me puzzled because no errors are generated, so maybe the cleanup code isn't being called for some reason (it looks like gs==null???). I think pclose (which is documented only to work with popen) needs to be replaced with waitpid(...). This function should also perform the cleanup you were concerned about (not really a major issue with pstotext because it exits so quickly anyway - but it seems like a good idea to get the exit status). For this to work, you will need to save the PID returned by fork so cleanup can access it. As for VMS, this is something I have no idea what-so-ever about. I would assume it should work, but I have never been near a VMS system so I have no idea. (disclaimer: I am no expert at this either). Please CC responses to me, thanks. -- Brian May <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]