You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ran with go (go run test.go), the two Printf statements show, then it exits as expected.
When ran with TinyGo (tinygo run test.go), it prints the statements then hangs forever. Checking with the debugger, it seems it's waiting for additional input from the go io.Copy(). Commenting out either the sleep or the go io.Copy() will let the program return normally.
This appears to be related to the use of os.Pipe(), because the same program written using io.Pipe() returns as expected.
Versions:
tinygo version 0.31.2 linux/amd64 (using go version go1.22.2 and LLVM version 17.0.1)
Code to replicate issue:
When ran with go (go run test.go), the two Printf statements show, then it exits as expected.
When ran with TinyGo (tinygo run test.go), it prints the statements then hangs forever. Checking with the debugger, it seems it's waiting for additional input from the
go io.Copy()
. Commenting out either the sleep or thego io.Copy()
will let the program return normally.This appears to be related to the use of
os.Pipe()
, because the same program written usingio.Pipe()
returns as expected.Returns as expected:
The text was updated successfully, but these errors were encountered: