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

Sometimes these threads are just serendipity!

I just recently finished a multithreaded program where I found obtaining the pid [on linux: getpid()] of child processes spawn was only effective by utilizing a common pipe that was non-blocking [fcntl(pipefd[1], F_SETFL, O_NONBLOCK) ].

In other, more humorous words, as a "parent," it's great to know what your "child," is doing (or in this sense), who your child is (the actual pid), instead of just kill SIGTERM them.



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

Search: