File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
acp-core/src/main/java/com/agentclientprotocol/sdk/client/transport Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -383,11 +383,13 @@ public Mono<Void> closeGracefully() {
383383 return Mono .<Process >empty ();
384384 }
385385 })).doOnNext (process -> {
386- if (process .exitValue () != 0 ) {
387- logger .warn ("Process terminated with code {}" , process .exitValue ());
386+ int exitCode = process .exitValue ();
387+ // 143 = SIGTERM (128+15), 137 = SIGKILL (128+9) - expected when we destroy
388+ if (exitCode == 0 || exitCode == 143 || exitCode == 137 ) {
389+ logger .info ("ACP agent process stopped (exit code {})" , exitCode );
388390 }
389391 else {
390- logger .info ( "ACP agent process stopped" );
392+ logger .warn ( "Process terminated unexpectedly with code {}" , exitCode );
391393 }
392394 }).then (Mono .fromRunnable (() -> {
393395 try {
You can’t perform that action at this time.
0 commit comments