Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: