You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ecki (via GitHub)" <gi...@apache.org> on 2023/07/16 07:23:55 UTC

[GitHub] [commons-exec] ecki commented on a diff in pull request #112: EXEC-105: fixed documentation

ecki commented on code in PR #112:
URL: https://github.com/apache/commons-exec/pull/112#discussion_r1264625159


##########
src/site/apt/tutorial.apt:
##########
@@ -169,7 +169,7 @@ executor.execute(cmdLine, resultHandler);
 
 // some time later the result handler callback was invoked so we
 // can safely request the exit value
-int exitValue = resultHandler.waitFor();
+resultHandler.waitFor();

Review Comment:
   I would also show the exitValue = resultHandler.getExitValue(); call as the comment suggests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org