Skip to content

Commit c822395

Browse files
alex-ilinmrjbq7
authored andcommitted
io.launcher: hide processes created by (process-stream)
1 parent 85710ce commit c822395

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

basis/io/launcher/launcher.factor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ PRIVATE>
255255
(pipe) |dispose
256256
(pipe) |dispose {
257257
[
258-
rot >process
258+
rot >process t >>hidden
259259
[ swap in>> or ] change-stdin
260260
[ swap out>> or ] change-stdout
261261
run-detached

basis/io/launcher/windows/windows-tests.factor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ SYMBOLS: out-path err-path ;
224224
out-path get-global utf8 file-contents
225225
] unit-test
226226

227+
{ t "This is a hidden process.\r\n" } [
228+
"cmd /c echo.This is a hidden process." utf8 (process-stream) hidden>> swap stream-contents
229+
] unit-test
230+
227231
[ "IN: scratchpad " ] [
228232
console-vm-path "-run=listener" 2array
229233
ascii [ "USE: system 0 exit" print flush lines last ] with-process-stream

0 commit comments

Comments
 (0)