⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wait.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/*	wait -- system call emulation for 4.2BSD or BRL PDP-11 UNIX	last edit:	18-Sep-1983	D A Gwyn*/#include	<errno.h>#include	<signal.h>extern int	_wait();intwait( stat_loc )	int	*stat_loc;		/* where to put status */	{	register void	(*sig)();	/* entry SIGCLD state */	if ( (sig = signal( SIGCLD, SIG_IGN )) == SIG_IGN )		{		while ( _wait( stat_loc ) != -1 || errno != ECHILD )			;		/* wait for all children */		return -1;		/* ECHILD */		}	else	{		(void)signal( SIGCLD, sig );	/* restore entry state */		return _wait( stat_loc );		}	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -