aries-cloudagent-python icon indicating copy to clipboard operation
aries-cloudagent-python copied to clipboard

Stopping the aca-py shell process keeps python process running

Open tdiesler opened this issue 1 year ago • 1 comments

This becomes a problem when controlling the aca-py process from another (e.g. Java) process. The aca-py shell process does not need to create another process.

exec [-cl] [-a name] [command [arguments]]
              If command is specified, it replaces the shell.  No new process  is  created.   The
              arguments become the arguments to command.  If the -l option is supplied, the shell
              places a dash at the beginning of the zeroth argument passed to command.   This  is
              what  [login](https://manpages.ubuntu.com/manpages/trusty/en/man1/login.1.html)(1)  does.   The  -c  option causes command to be executed with an empty
              environment.  If -a is supplied, the shell passes name as the  zeroth  argument  to
              the  executed  command.   If  command  cannot  be  executed for some reason, a non-
              interactive shell exits, unless the execfail shell  option  is  enabled.   In  that
              case,  it returns failure.  An interactive shell returns failure if the file cannot
              be executed.  If command is not specified, any  redirections  take  effect  in  the
              current  shell,  and  the return status is 0.  If there is a redirection error, the
              return status is 1.

tdiesler avatar Aug 12 '22 09:08 tdiesler

PR: https://github.com/hyperledger/aries-cloudagent-python/pull/1896

tdiesler avatar Aug 12 '22 09:08 tdiesler