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

📄 exit.2

📁 Unix操作系统minix 2.0源码
💻 2
字号:
.\" Copyright (c) 1980 Regents of the University of California..\" All rights reserved.  The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\"	@(#)exit.2	6.4 (Berkeley) 5/22/86.\".TH EXIT 2 "May 22, 1986".UC 4.SH NAMEexit, _exit \- terminate a process.SH SYNOPSIS.nf.ft Bvoid _exit(int \fIstatus\fP).fi.SH DESCRIPTION.de SP.if t .sp 0.4.if n .sp...B _exitterminates a process with the following consequences:.RS.SPAll of the descriptors open in the calling process are closed.This may entail delays, for example, waiting for output to drain;a process in this state may not be killed, as it is already dying..SPIf the parent process of the calling process is executing a.B waitor is interested in the SIGCHLD signal (Minix-vmd),then it is notified of the calling process's termination andthe low-order eight bits of \fIstatus\fP are made available to it;see.BR wait (2)..SPThe parent process ID of all of the calling process's existing childprocesses are also set to 1.  This means that the initialization process(see .BR intro (2))inherits each of these processes as well..igAny stopped children are restarted with a hangup signal (SIGHUP)....RE.PPMost C programs call the library routine.BR exit (3),which performs cleanup actions in the standard I/O library beforecalling \fI_exit\fP\|..SH "RETURN VALUE"This call never returns..SH "SEE ALSO".BR fork (2),.BR sigaction (2),.BR wait (2),.BR exit (3).

⌨️ 快捷键说明

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