... | ... | @@ -523,4 +523,20 @@ socket.cancel() |
|
|
t.join()
|
|
|
```
|
|
|
|
|
|
Retrieving the output may not be only restricted to debug. If you need to integrate an external program that only has output, control could be done by analyzing the output stream. |
|
|
\ No newline at end of file |
|
|
Retrieving the output may not be only restricted to debug. If you need to integrate an external program that only has output, control could be done by analyzing the output stream.
|
|
|
|
|
|
# Unlinked apps
|
|
|
|
|
|
By default, if *App1* starts *App2* and *App1* finished before *App2* then *App2* will be stopped i.e. a stop request will be sent to its Cameo server. This default behaviour avoids to have orphaned apps that have in fact no reason to live especially if their starter app terminated unexpectedly.
|
|
|
|
|
|
However there are some cases where it is interesting to detach the lifecycle of an app from its starter. In that case, you simply have to specify it in the start command.
|
|
|
|
|
|
In C++:
|
|
|
```cpp
|
|
|
std::unique_ptr<cameo::App> app2 = server.start("App2", cameo::UNLINKED);
|
|
|
```
|
|
|
|
|
|
In Java:
|
|
|
```java
|
|
|
App instance = server.start("App2", Option.UNLINKED);
|
|
|
``` |