getpid() system call works