.\" -*- nroff -*- .\" .\" This manpage is Copyright (C) 1992 Drew Eckhardt; .\" 1993 Michael Haardt, Ian Jackson. .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" Modified Wed Jul 21 23:02:38 1993 by Rik Faith .\" .TH _EXIT 2 "21/07/1993" Linux "Manual do Programador Linux" .SH NOME _exit \- Termina o processo corrente .SH SINÓPSE .B #include .sp .BI "void _exit(int " estado ); .SH DESCRIÇÃO .B _exit termina o processo solicitante imediatamente. Qualquer descritor de arquivo aberto pelo processo será fechado; qualquer processo filho será herdado pelo processo 1, init, e para o processo pai é enviado um sinal .B SIGCHLD. .I O estado é retornado para o processo pai como o estado de saída do processo e pode ser controlado usando uma das chamadas da família .B wait . .SH "VALORES RETORNADOS" .B _exit nunca retorna. .SH "DE ACORDO COM" SVr4, SVID, POSIX, X/OPEN, BSD 4.3 .SH NOTAS .B _exit não chama qualquer função registrada com a função ANSI C .B atexit e não limpa o buffer padrão de E/S. Para fazer isto, use .BR exit (3). .SH "VEJA TAMBÉM" .BR fork (2), .BR execve (2), .BR waitpid (2), .BR wait4 (2), .BR kill (2), .BR wait (2), .BR exit (3) .SH TRADUZIDO POR LDP-BR em 21/08/2000 \&\fR\&\f(CWAndré L. Fassone Canova (tradução)\fR \&\fR\&\f(CWFábio Henrique F. Silva (revisão)\fR