Re: Process & Fork

Quenio dos Santos <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <CAJ6rE1xU1tyLn8A8Ld5Zpk8c9=o=kq4gYau_5h23UiwmJpCKtQ@mail.gmail.com>
It hangs as well when I put the counter on the main process with a delay.

i := 0.
[ true ] whileTrue: [
  i := i + 1.
  i displayNl.
  (Delay forSeconds: 1) wait.
]


$ gst counter.st
1
2
3


On Sun, Jul 21, 2019 at 8:20 AM Tommy Pettersson <[email protected]> wrote:

> If it's not working with a delay in the main process it sounds like a bug.
> What if you put a counter in the main process and print it as well, does
> the main process stop too, or is it just the forked process?
>
> Btw, on my Linux machine your original example works the way you expect. I
> get the output:
>
>    1 2 3 4 5 6 7 ... and so on, until I interrupt it.
>
> Both with v3.2.5 and current master branch.
>
> /Tommy
>
_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.