Win32::Process return with exit code = 143

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jbenezech
    New Member
    • Feb 2007
    • 3

    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($Proces sObj,
    shift(@args),
    join(" ", @args),
    0,
    Win32::Process: :NORMAL_PRIORIT Y_CLASS|Win32:: Process::CREATE _NO_WINDOW|Win3 2::Process::DET ACHED_PROCESS,
    $installPath) or $retCode = 99;

    $lastRunningPid = $ProcessObj->GetProcessID() ;

    $ProcessObj->Wait(Win32::Pr ocess::INFINITE );

    $ProcessObj->GetExitCode($r etCode);


    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
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    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.

    Comment

    • jbenezech
      New Member
      • Feb 2007
      • 3

      #3
      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

      Comment

      • miller
        Recognized Expert Top Contributor
        • Oct 2006
        • 1086

        #4
        Excellent. Glad I could help.

        Comment

        Working...