Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Testing/ExitTests/ExitTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ extension ExitTest {
// a pipe instead of a regular file; that gets us our performance back.
// SEE: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/coredump.c#n610
var rl = rlimit(rlim_cur: 1, rlim_max: 1)
_ = setrlimit(CInt(RLIMIT_CORE.rawValue), &rl)
_ = setrlimit(__rlimit_resource_t(RLIMIT_CORE.rawValue), &rl)
Comment thread
glessard marked this conversation as resolved.
Outdated
#elseif os(FreeBSD) || os(OpenBSD)
// As with Linux, disable the generation core files. The BSDs do not, as far
// as I can tell, special-case RLIMIT_CORE=1.
Expand Down