Skip to content

Commit

Permalink
Update src/lib/y2iscsi_client/timeout_process.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Vidner <mvidner@suse.cz>
  • Loading branch information
jreidinger and mvidner committed Oct 5, 2022
1 parent 1f7deb3 commit 8d8cc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/y2iscsi_client/timeout_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.run(command, timeout: 10)

# pass kill-after to ensure that command really dies even if ignore TERM
stdout, stderr, exit_status = Yast::Execute.on_target!(
"/usr/bin/timeout", "--kill-after", "5s", "#{timeout}s",
"/usr/bin/timeout", "--kill-after=5s", "#{timeout}s",
*command, stdout: :capture, stderr: :capture,
allowed_exitstatus: 0..255, env: { "LC_ALL" => "POSIX" }
)
Expand Down

0 comments on commit 8d8cc93

Please sign in to comment.