Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ playground.xcworkspace
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.swiftpm/
.build/

# CocoaPods
Expand Down
2 changes: 1 addition & 1 deletion Sources/Subprocess/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ internal struct CreatedPipe {

internal init(
readFileDescriptor: TrackedFileDescriptor?,
writeFileDescriptor: TrackedFileDescriptor?,
writeFileDescriptor: TrackedFileDescriptor?
) {
self.readFileDescriptor = readFileDescriptor
self.writeFileDescriptor = writeFileDescriptor
Expand Down
2 changes: 1 addition & 1 deletion Sources/_SubprocessCShims/process_shims.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static int _subprocess_spawn_prefork(
*pid = childPid;
// Read from the pipe until pipe is closed
// either due to exec succeeds or error is written
while (true) {
while (TRUE) {
int childError = 0;
ssize_t read_rc = read(pipefd[0], &childError, sizeof(childError));
if (read_rc == 0) {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SubprocessTests/SubprocessTests+Unix.swift
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ extension SubprocessUnixTests {
group.addTask {
return try await Subprocess.run(
.path("/bin/sh"),
arguments: ["-c", "trap 'echo no' TERM; while true; do sleep 1; done"],
arguments: ["-c", "trap 'echo no' TERM; while true; do sleep 1; done"]
).terminationStatus
}
group.addTask {
Expand Down