File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/main/java/com/aws/greengrass/util/platforms/unix Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,16 @@ public void close() throws IOException {
126126 boolean isAnyProcessAlive = pidProcesses .stream ().anyMatch (pidProcess -> {
127127 try {
128128 return pidProcess .isAlive ();
129- } catch (IOException ignored ) {
129+ } catch (IOException e ) {
130+ logger .atWarn ().cause (e ).log ("Unable to determine if process is alive, "
131+ + "assuming it is to allow further cleanup attempts" );
132+ return true ;
130133 } catch (InterruptedException e ) {
134+ logger .atWarn ().cause (e ).log ("Unable to determine if process is alive, "
135+ + "assuming it is to allow further cleanup attempts" );
131136 Thread .currentThread ().interrupt ();
137+ return true ;
132138 }
133- return false ;
134139 });
135140 if (isAnyProcessAlive ) {
136141 logger .atWarn ()
You can’t perform that action at this time.
0 commit comments