Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exec command problem in TCL/TK 8.3.2

Status
Not open for further replies.

apgoh

Programmer
Dec 9, 2001
3
MY
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top