Skip to content

Commit

Permalink
WIP tidier: could explode if tmp-file does not exist, but then why is…
Browse files Browse the repository at this point in the history
… exit-status 0 ?
  • Loading branch information
owaddell-beckman committed Jun 6, 2024
1 parent 2371282 commit 8281b6e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/apt-archive/proxy.ss
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@
(receive
[#(process-terminated ,@os-pid ,exit-status ,term-signal)
(and (= exit-status 0)
(file-exists? tmp-file)
(begin
(rename-path tmp-file (make-directory-path target-file))
#t))]))]
(rename-path tmp-file (make-directory-path target-file))
(file-exists? tmp-file))]))]
["http"
(let-values ([(ip op) (connect-tcp host port)])
(on-exit (begin (close-port ip) (close-port op))
Expand Down

0 comments on commit 8281b6e

Please sign in to comment.