munge the size in common_set_mmap_ptr_len
watchdog: if main died, clear its pid.