Change (int) rc to (int) getpid()