diff --git a/src/main/java/com/julienviet/childprocess/Process.java b/src/main/java/com/julienviet/childprocess/Process.java index bee80c3..67dfb68 100644 --- a/src/main/java/com/julienviet/childprocess/Process.java +++ b/src/main/java/com/julienviet/childprocess/Process.java @@ -83,7 +83,7 @@ static Process spawn(Vertx vertx, String command, List args) { * @return the process */ static Process spawn(Vertx vertx, String command, ProcessOptions options) { - return spawn(vertx, command, Collections.emptyList(), new ProcessOptions()); + return spawn(vertx, command, Collections.emptyList(), options); } /** @@ -133,7 +133,7 @@ static Process create(Vertx vertx, String command, List args) { * @return the created child process */ static Process create(Vertx vertx, String command, ProcessOptions options) { - return create(vertx, command, Collections.emptyList(), new ProcessOptions()); + return create(vertx, command, Collections.emptyList(), options); } /**