I've been trying to run a TCL script with the exec command. I'm using TCL/TK 8.0 on HP-UX 10.20 platform. The program calls the exec command a few times. It works fine for the first time the command is called, but when it comes to the second time, the program ends prematurely. It just exit without any error message. I suspect that it is the thread problem where the TCL exec command will call vfork(), but according to the vfork() man page, this function is unsafe in multi-threaded applications. And from here later I found out that by installing the patch PHCO_23684 and set the environment variable _VFORK_NO_CMA=true, the problem is solved.
Anyway, now that I've upgrade my TCL/TK library to version 8.3.2, because I was told that in TCL/TK version 8.3 the exec bug no longer exists. But this problem still occurs. And by installing the patch and setting the environment, it does no effect at all(worst than when I use version 8.0?!?). Anyone has any idea how I can solve this problem?
Anyway, now that I've upgrade my TCL/TK library to version 8.3.2, because I was told that in TCL/TK version 8.3 the exec bug no longer exists. But this problem still occurs. And by installing the patch and setting the environment, it does no effect at all(worst than when I use version 8.0?!?). Anyone has any idea how I can solve this problem?