iOS runCommand passes timeoutMs to spawn, which ignores it, and its comment relies on that backstop

Đang mở
#1,980 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
mobile-dev

Hướng nghiên cứu

Read src/drivers/ios/command-run.ts and src/ports/process-runner-types.ts, then inspect NodeProcessRunner.spawn and the ports manual to confirm the timeout contract. Determine how timeout handling should escalate a command that ignores SIGTERM, and check the related issue #1979 for context. Done when the spawn options and implementation agree with the documented contract and the command timeout can escalate as described.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug:new

src/drivers/ios/command-run.ts:24-26 computes runnerTimeoutMs and passes it to processRunner.spawn, with the comment "the runner's own timeout is a backstop past the late kill". NodeProcessRunner.spawn reads no timeoutMs, so there is no backstop. runCommand itself still answers at its own clock timer, but a command that ignores the one SIGTERM it sends is never escalated to SIGKILL.

ProcessRunOptions (src/ports/process-runner-types.ts:2) accepts timeoutMs for spawn although the ports manual says spawn takes none, so the compiler flags neither this call nor the one in #1979.

Read in the code on origin/main at dead1fb26, not run. Found while triaging #1979.

Written by an agent.

Ngôn ngữ chính
TypeScript
Star
730
Fork
44
Merge trung bình
16 giờ 13 phút
Pull request đã merge (30 ngày)
387

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.