Limit the execution time #3

Merged
bastien.ollier merged 3 commits from sys/timeout into master 2 years ago

Using the Linux specific API timerfd(2), a submitted infinite loop will not be ran indefinitely. It will be killed after two seconds.

Moshell test code: while true { echo "foo"; sleep 1 }
Bash test code: while true; do echo "foo"; sleep 1; done

Using the Linux specific API [`timerfd(2)`](https://man7.org/linux/man-pages/man2/timerfd_create.2.html), a submitted infinite loop will not be ran indefinitely. It will be killed after two seconds. Moshell test code: `while true { echo "foo"; sleep 1 }` Bash test code: `while true; do echo "foo"; sleep 1; done`
clement.freville2 added the enhancement label 2 years ago
clement.freville2 added 3 commits 2 years ago
continuous-integration/drone/push Build is passing Details
4ec0b7f710
Define a runner timeout
continuous-integration/drone/push Build is passing Details
c1cca106b7
Stop the containers if the process ends brutally
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
65b83d45a1
Write the exit code
clement.freville2 requested review from bastien.ollier 2 years ago
bastien.ollier approved these changes 2 years ago
bastien.ollier left a comment
Owner

✌️✌️✌️

✌️✌️✌️
bastien.ollier merged commit 913b6ee15b into master 2 years ago
bastien.ollier deleted branch sys/timeout 2 years ago

Reviewers

bastien.ollier approved these changes 2 years ago
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
The pull request has been merged as 913b6ee15b.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: sandkasten/planificador#3
Loading…
There is no content yet.