Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: create os-specific layer for syscalls #599

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

bmeneg
Copy link
Collaborator

@bmeneg bmeneg commented Feb 23, 2021

Add OS-specific files for handling syscalls.
This file should be used as a compatibility layer.

Fixes #598

NOTE: this MR is required to allow our next release.

We're using some syscalls directly to handle STDOUT and STDERR
redirects. These calls were done for Linux specific systems, which don't
work for Windows. That's not the first time we hit such issue. With
that, this patch creates compatibility files dedicated to Windows and
any other Unix-like systems.

Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
@codecov
Copy link

codecov bot commented Feb 23, 2021

Codecov Report

Merging #599 (090ff30) into master (f5951aa) will increase coverage by 0.05%.
The diff coverage is 22.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #599      +/-   ##
==========================================
+ Coverage   57.48%   57.54%   +0.05%     
==========================================
  Files          67       68       +1     
  Lines        4347     4350       +3     
==========================================
+ Hits         2499     2503       +4     
  Misses       1605     1605              
+ Partials      243      242       -1     
Impacted Files Coverage Δ
cmd/util_unix.go 0.00% <0.00%> (ø)
cmd/util.go 72.69% <33.33%> (ø)
cmd/fork.go 58.97% <0.00%> (+5.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5951aa...090ff30. Read the comment docs.

@bmeneg bmeneg merged commit 4613fc6 into zaquestion:master Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows syscalls error
2 participants