Hacker News new | ask | show | jobs
by wtbob 3890 days ago
I think I was most surprised to see that fork used to take a label. How did that work?
2 comments

From the article: "The new processes differ only in that one is considered the parent process: in the parent, control returns directly from the fork, while in the child, control is passed to location label"
Just guessing, but the label probably became an address on compilation, so one branch of the fork would return in the usual way, the other would jump to the label/address