proctrack/cray_aries: use current pid instead of thread if we're in fork
pthread_create is not a async-signal-safe function, since it can't be used in a fork (according to POSIX). Calling it may end-up with deadlock in glibc. Bug 7666.
Please register or sign in to comment