@stll/oxlint-config 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -298,7 +298,9 @@ network_run() (
298
298
  trap 'exit 143' TERM
299
299
  # Output goes to a file, never a pipe: package scripts may leave processes that keep
300
300
  # inherited descriptors open, and a pipe reader would wait for them past the command.
301
- timeout --signal=TERM --kill-after=5s "$seconds"s "$@" > "$network_log" 2>&1 || status=$?
301
+ # Input is never the terminal: timeout runs the command outside the foreground process
302
+ # group, where apt restoring terminal settings on a terminal stdin stops it for good.
303
+ timeout --signal=TERM --kill-after=5s "$seconds"s "$@" < /dev/null > "$network_log" 2>&1 || status=$?
302
304
  release_log_holders "$network_log"
303
305
  cat -- "$network_log" || fail 'Cannot capture network command output'
304
306
  [[ "$status" != 0 ]] || return 0