Skip to content

Commit db6b83c

Browse files
committed
programs: Run curl in background so it doesn't block the system
1 parent d42e0d8 commit db6b83c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

virtual-programs/programs.folk

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ When (non-capturing) /type/ /obj/ has a program {
1616
# way of finding the 'authoritative' node on the local
1717
# network, or broadcasting out, and getting pages from
1818
# there.
19+
puts stderr "programs: WARNING: Faulting to folk0 to try to get program $obj.folk"
1920
exec curl --output "$::env(HOME)/folk-printed-programs/$obj.folk" \
20-
"http://folk0.local:4273/printed-programs/$obj.folk"
21+
"http://folk0.local:4273/printed-programs/$obj.folk" &
22+
# HACK: It won't be reloaded until you redetect the tag.
2123
}
2224
set fd [open "$::env(HOME)/folk-printed-programs/$obj.folk" r]
2325
}

0 commit comments

Comments
 (0)