469,275 Members | 1,599 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Win32::Process return with exit code = 143

Hi All,

I have a perl script which starts a java process using Win32::Process. Here is the code to start the java proces:
Win32::Process::Create($ProcessObj,
shift(@args),
join(" ", @args),
0,
Win32::Process::NORMAL_PRIORITY_CLASS|Win32::Proce ss::CREATE_NO_WINDOW|Win32::Process::DETACHED_PROC ESS,
$installPath) or $retCode = 99;

$lastRunningPid = $ProcessObj->GetProcessID();

$ProcessObj->Wait(Win32::Process::INFINITE);

$ProcessObj->GetExitCode($retCode);


Sometimes the java process returns with an exit code of 143 which is none of my App exit code. This seems to happen when the java process takes a long time to terminate (2h).

Anybody knows about that return code ? What does it mean ? Timeout ?


Cheers,
Jerome
Feb 2 '07 #1
3 10113
miller
1,089 Expert 1GB
I have no experience with this type of thing, but this is more of a Java issue than a perl issue. I would suggest that you google "exit code 143" as that brought up at least a million results, and I'm betting some of them might be illuminating.
Feb 2 '07 #2
Sorry, you are right. I did not even think about looking on the java side....
For info, exit code 143 means the JVM received a SIGTERM signal. In my case this is due to a user logoff event.
Thanks for your help,
Jerome
Feb 4 '07 #3
miller
1,089 Expert 1GB
Excellent. Glad I could help.
Feb 4 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Guy | last post: by
reply views Thread by Carlo Filippini | last post: by
1 post views Thread by RL | last post: by
1 post views Thread by rob | last post: by
2 posts views Thread by Paolo | last post: by
1 post views Thread by Java and Swing | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.