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

linux: ignore errors creating /dev/console #151

Merged
merged 1 commit into from
Oct 30, 2019

Conversation

giuseppe
Copy link
Member

ignore errors if the file cannot be created as it might already
exist. We are anyway going to create a mount on top of it and we'll
catch possible errors during the mount itself.

Closes: #150

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

return ret;
{
/* Ignore errors if the file creation fails. */
crun_error_release (err);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check if the file exists? and only ignore those errors?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, changed in the newer version

if the file cannot be created, check if it already exists before
raising an error.

Closes: containers#150

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Oct 30, 2019

LGTM

@rhatdan rhatdan merged commit cabfa48 into containers:master Oct 30, 2019
@rhatdan
Copy link
Member

rhatdan commented Oct 30, 2019

@giuseppe I think we need a new release to go out on Friday as well.

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.

/dev cannot be mounted when podman-run started with -t option.
2 participants