Behaves different on my osx and linux machines

Kagamin spam at here.lot
Wed Dec 27 14:00:09 UTC 2023


Maybe write and read lock each other, try to use puts:
```
       bool done = false;
       while (!done) {
           puts("1");
           auto result = ["echo", "Hello World"].execute;
           if (result.status != 0)
           {
               writeln(2);
               throw new Exception("echo failed");
           }
           puts("2");
           writeln(result.output);
           puts("3");
           receiveTimeout(dur!"msecs"(-1),
             (LinkTerminated t) {
                 writeln("Done");
                 done = true;
             },
           );
           writeln(4);
       }
       writeln("ByeBye");
```


More information about the Digitalmars-d-learn mailing list