4 ms·
glibc caches getpid, so you'll only see the syscall happen after the cache gets invalidated by a call to fork, clone, etc.
by jmgao 9y ago
glibc caches getpid, so you'll only see the syscall happen after the cache gets invalidated by a call to fork, clone, etc.