Bit confused, compiling a small program of mine with -std=c99 via GCC suddenly fails to recognize anything from signal.h and I am blocked from compiling.
"Dear Kamiccolo. We're happy to let you know our new business is also finished being constructed. Your patience with us is appreciated. In thanks, we have given you a free voucher for one tap dancing lesson on the new tap dancing floor we've installed above your workspace"/
workers have very bad working process, they are sevens but only one can work on data because he lock the mutex and all others look him until he unlock it ;)
Overview
I have a c++ application that reads large amount of data (~1T). I run it using hugepages (614400 pages at 2M) and this works - until it hits 128G.
For testing I created a simple application in c++ that allocates chunks of 2M until it can't.
Application is run using:
LD_PRELOAD=/usr/l...
Can a process listen in on another process's "exit" without having to block via waitpid()?
Let me be a bit more precise.
Providing my current process exits normally, can I construct a signal handler within that very process to capture the exit? Providing I can't, can I allow another process to receive a signal when it exits?
"Providing my current process exits normally, can I construct a signal handler within that very process to capture the exit? Providing I can't, can I allow another process to receive a signal when it exits? "
Okay. Let me clear it up. When I mentioned the parent process, it was just because I intend to eventually use a parent process, and so if it's not possible for the child to receive a signal before it terminates, but the parent can; then I can accept that option. However, It makes no difference whether the parent or child receives a signal before the child dies. I just want someone to receive it.