Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tcf-dev] The 'terminate' command in Processes service doesn't work

Hi,


    I can't get the terminate command to work with the agent built from master. Here's a reproducer:


1. Environment: Ubuntu 16.04

2. Start the agent in one console:

    $ ./agent &

3. Start the client in another console, and do the following in the client

   > connect tcp::1534
   Connection established with TCP:127.0.0.1:1534
   > tcf Processes start "/tmp" "/home/Hello_World_Loop/Debug/Hello_World_Loop" [] [] false
  {"Name":"[Hello_World_Loop]","CanTerminate":true,"StdInID":"VS0","StdOutID":"VS1","StdErrID":"VS2","ID":"P19231"}
   > tcf Processes terminate "P19231"

4. Now, go back to the first console, and do

    $ pgrep -a Hello_Wrold_Loop

    You would still see the Hello_World_Loop in the output.


I tried a few other tags in the repo. 1.4_neon and 1.5_oxygen both suffer the same problem, whereas 1.3.0 doesn't (i.e., the process does get killed after the terminate command is issued).


Does this look like a bug, or am I missing something when starting the process? Any input would be appreciated. Thanks!


--Dato


Back to the top