Menu

Zombie process keep running when called though PHP exec function(Do then Quit option)

Anonymous
2016-01-11
2016-05-12
  • Anonymous

    Anonymous - 2016-01-11

    Thank you for a fantastic software.

    When called though PHP exec function, zombie process keeps running even if there is "capsquit" or "sendquit" command in the command line, from Realterm Beta 3.0.0.26 on.

    PHP scripts are called from web browser(such as I.E.) and the web page hangs since the realterm process keeps running forever.

    Although Realterm is supposed to quit shortly for there is "capquit" or "sendquit" command in the command lines, it never stops running after the task is finished.

    And if I call the PHP script ten times, ten zombie processes keep running.

    (If I enter the same command to the DOS window, Realterm works perfectly and then quit gracefully)

    There was no such problem until Beta 3.0.0.25.

    * PHP source examples;

    exec('realterm.exe baud=115200 port=4 flow=0 visible=0 capcount=300 capquit=captured'); <== capture stream from external device, then quit

    or

    exec('realterm.exe baud=115200 port=4 flow=0 senddly=300 sendrep=5 sendquit=rt_comm.txt'); <== send a command to external device, then quit

    * My environment

    -Windows 8.1
    -Apache 2.2.14
    -PHP 5.2.12

     

    Last edit: Anonymous 2016-01-11
  • Simon Bridger

    Simon Bridger - 2016-01-11

    Interesting. Nothing obvious in the changelog that seems related at all.

    You are a bit ambiguous above about whether 3.0.0.25 worked or did not work. Does it work?

    What happens if you manually close that RT instance instead of using capquit etc?
    What happens if you manually close the comport while the instance is running, and then let it close itself? (ie use timed capquit so you have time to close the port manually)
    Does the zoom state of the window have any effect (minimised/normal/maximised)
    What happens if you put nothing on the RT command line, (no send/captures etc) and just close it manually?
    Does your PHP use the realterm exit-codes at all?
    What happens when you run RT from a batch file? If that works, can you call a batch file from your php?

    Try anything you can, and see if there are any clues.

     
  • Hannah Becket

    Hannah Becket - 2016-01-22

    Well this is just too complicated for me

     
  • Anonymous

    Anonymous - 2016-05-06

    Hi,

    I have the same problem with some batch files. First, CAPQUIT is not working and if I kill the realterm task a small icon continues appearing in tasks part of the task bar.

    Any help would be appreciated. Thanks

     
  • Simon Bridger

    Simon Bridger - 2016-05-12

    What version are you using?
    Can you answer any of the questions above that I asked the first questioner?

     

Anonymous
Anonymous

Add attachments
Cancel