From 328139deb1f175f84f4845ad6e7d8defddf088c2 Mon Sep 17 00:00:00 2001 From: LL Date: Thu, 28 Mar 2019 11:51:01 +0100 Subject: [PATCH] Fix spawn methods to take into account the ProcessOptions passed in parameter --- src/main/java/com/julienviet/childprocess/Process.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /**