Y
Hacker News
new
|
ask
|
show
|
jobs
by
Vogtinator
1330 days ago
Usually programs fork() before they do anything that requires threads. To have the program in the "foreground", just fork and wait for a kind of signal from the forked process and exit only when that arrives.