Limit the execution time #3
Merged
bastien.ollier
merged 3 commits from sys/timeout
into master
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'sys/timeout'
Deleting a branch is permanent. It CANNOT be undone. Continue?
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
✌️✌️✌️
913b6ee15b
into master 2 years agoReviewers
913b6ee15b
.