Skip to content

Commit e66ef81

Browse files
committed
halt on unexpected syscalls
`Expects()` doesn't actually shut down the service, causing an infinite loop of strace errors
1 parent a5f5982 commit e66ef81

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/musl/common.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ template<typename Fn, typename ...Args>
7474
inline auto strace(Fn func, [[maybe_unused]]const char* name, Args&&... args) {
7575
if (!kernel::state().allow_syscalls) {
7676
fprintf(stderr, "Syscalls not allowed here. Unexpected call to %s - terminating\n", name);
77+
os::halt();
7778
Expects(kernel::state().allow_syscalls);
7879
}
7980

0 commit comments

Comments
 (0)