Hi Erich, Regarding my last mail: I guess its not necessary to write a test program "equivalent of acquireLock in APIService.cpp" anymore since I found the lock-file?
First thing I try now is to use a different Path for the androidbuild. Maybe /data/local/tmp is not the best solution. I will try /data/local instead (however this path has restrictions for non-root users. e.g. "ls -al" leads to --> permission denied See, my answers inline. Best Regards and Thank you! Thomas On 6/14/21 10:50 PM, Erich Steinböck wrote: I dont have access to /tmp on the device Can you check if the TMPDIR environment variable is defined (echo $TMPDIR) and if so run rxapi like this XDG_RUNTIME_DIR=$TMPDIR rxapi It is defined under: /data/local/tmp and indeed there is the lock-file. rm lockfile and running rxapi again leads to the same behavior. Can you check if /data/local/tmp is available and files can be created in it and if so run rxapi like this Yes and yes XDG_RUNTIME_DIR=/data/local/tmp rxapi I did that with the following command: PATH=./bin.:$PATH LD_LIBRARY_PATH=./lib XDG_RUNTIME_DIR=/data/local/tmp bin/rxapi Changed nothing and created the lock-file again: generic_x86_64_arm64:/data/local/tmp $ ls -al total 28 drwxrwx--x 3 shell shell 4096 2021-06-16 10:03 . drwxr-x--x 4 root root 4096 2021-06-16 08:49 .. -rw-rw-rw- 1 shell shell 0 2021-06-16 10:03 .ooRexx-5.0.0-32-shell.lock drwxrwxr-x 3 shell shell 4096 2021-06-16 09:05 androidbuild generic_x86_64_arm64:/data/local/tmp $ Else try to find any directory that allows creating files and run rxapi as described above but Im working on a hint Prof. Flatscher gave me hoping to get around this issue Will you share it with us? Of course. I changed "rexxapi/common/platform/unix/SysCSStream.cpp" the function (line 473) "void SysServerLocalSocketConnectionManager::getServiceLocation(...)" to generate additional output when executing rxapi. The additional output is as follows: PATH=./bin.:$PATH LD_LIBRARY_PATH=./lib bin/rxapi < -> getServiceLocation: XDG_RUNTIME_DIR not found... => getServiceLocation: homePath=[/data/local/tmp] => getServiceLocation: lock-file=[/data/local/tmp/.ooRexx-5.0.0-32-shell] rxapi: lockfile path is /data/local/tmp/.ooRexx-5.0.0-32-shell.lock rxapi: lockfile lock acquired -> getServiceLocation: XDG_RUNTIME_DIR not found... => getServiceLocation: homePath=[/data/local/tmp] => getServiceLocation: lock-file=[/data/local/tmp/.ooRexx-5.0.0-32-shell] rxapi: service path is /data/local/tmp/.ooRexx-5.0.0-32-shell.service rxapi: service is locked by another rxapi instance; exiting
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel