FreeBSD/sys/fs/nfsserver/nfs_nfsdport.c
/*
 * Signal the userland master nfsd to backup the stable restart file.
 */
Signal the userland master nfsd to backup the stable restart file.
Signal the userland master nfsd to backup the stable restart file .
void
nfsrv_backupstable(void)
{
	struct proc *procp;
	if (nfsd_master_proc != NULL) {
		procp = pfind(nfsd_master_pid);
		if (procp == nfsd_master_proc &&
		    procp->p_stats->p_start.tv_sec ==
		    nfsd_master_start.tv_sec &&
		    procp->p_stats->p_start.tv_usec ==
		    nfsd_master_start.tv_usec &&
		    strcmp(procp->p_comm, nfsd_master_comm) == 0)
			kern_psignal(procp, SIGUSR2);
		else
			nfsd_master_proc = NULL;
		if (procp != NULL)
			PROC_UNLOCK(procp);
	}
}
void nfsrv_backupstable ( void ) { struct proc * procp ; if ( nfsd_master_proc != NULL ) { procp = pfind ( nfsd_master_pid ) ; if ( procp == nfsd_master_proc && procp -> p_stats -> p_start . tv_sec == nfsd_master_start . tv_sec && procp -> p_stats -> p_start . tv_usec == nfsd_master_start . tv_usec && strcmp ( procp -> p_comm , nfsd_master_comm ) == 0 ) kern_psignal ( procp , SIGUSR2 ) ; else nfsd_master_proc = NULL ; if ( procp != NULL ) PROC_UNLOCK ( procp ) ; } }
Signal the userland master nfsd to backup the stable restart file.
Signal the userland master nfsd to backup the stable restart file .
/* Try to make sure it is the correct process. */