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

Implement basic foreground mode #1656

Merged
merged 4 commits into from
Mar 17, 2023
Merged

Conversation

yihuaf
Copy link
Collaborator

@yihuaf yihuaf commented Mar 11, 2023

This PR supports basic foreground mode where the youki main process will wait for the container process to exit. A basic foreground signal forwarding is implemented to match the behavior of runc. This PR includes the structure of the signal forwarder, but not every details is matched to runc yet.

Fix #1627
Fix #317
Fix #628

@yihuaf yihuaf self-assigned this Mar 11, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #1656 (e89cf96) into main (29babe7) will decrease coverage by 0.09%.
The diff coverage is 3.57%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1656      +/-   ##
==========================================
- Coverage   68.95%   68.87%   -0.09%     
==========================================
  Files         120      120              
  Lines       13156    13174      +18     
==========================================
+ Hits         9072     9073       +1     
- Misses       4084     4101      +17     

@yihuaf yihuaf force-pushed the yihuaf/foreground branch from 6d909b9 to f79ab01 Compare March 14, 2023 06:28
@yihuaf yihuaf marked this pull request as ready for review March 14, 2023 06:30
@yihuaf yihuaf requested review from utam0k, Furisto and YJDoc2 March 14, 2023 06:30
yihuaf added 3 commits March 16, 2023 02:21
Signed-off-by: Eric Fang <[email protected]>
Signed-off-by: Eric Fang <[email protected]>
@yihuaf yihuaf force-pushed the yihuaf/foreground branch from f79ab01 to 784a5c7 Compare March 16, 2023 16:28
Signed-off-by: Eric Fang <[email protected]>
@yihuaf yihuaf requested a review from utam0k March 17, 2023 02:45
@utam0k utam0k merged commit 2260c1e into youki-dev:main Mar 17, 2023
@utam0k utam0k mentioned this pull request Mar 17, 2023
4 tasks
@yihuaf yihuaf deleted the yihuaf/foreground branch March 17, 2023 16:55
@yihuaf yihuaf mentioned this pull request Mar 23, 2023
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.

youki run bug Add --detach -d option Support running Youki in foreground mode
3 participants