.\" -*- coding: UTF-8 -*- .\" This manpage is Copyright (C) 1992 Drew Eckhardt; .\" and Copyright (C) 1993 Michael Haardt, Ian Jackson. .\" .\" %%%LICENSE_START(VERBATIM) .\" 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. .\" %%%LICENSE_END .\" .\" Modified Wed Jul 21 23:02:38 1993 by Rik Faith .\" Modified 2001-11-17, aeb .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH _EXIT 2 "9 lutego 2020 r." Linux "Podręcznik programisty Linuksa" .SH NAZWA _exit, _Exit \- zakończenie bieżącego procesu .SH SKŁADNIA \fB#include \fP .PP \fBvoid _exit(int \fP\fIstatus\fP\fB);\fP \fB#include \fP .PP \fBvoid _Exit(int \fP\fIstatus\fP\fB);\fP .PP .RS -4 Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .RE .PP .ad l \fB_Exit\fP(): .RS 4 _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L .RE .ad .SH OPIS \fB_exit\fP() terminates the calling process "immediately". Any open file descriptors belonging to the process are closed. Any children of the process are inherited by \fBinit\fP(1) (or by the nearest "subreaper" process as defined through the use of the \fBprctl\fP(2) \fBPR_SET_CHILD_SUBREAPER\fP operation). The process's parent is sent a \fBSIGCHLD\fP signal. .PP The value \fIstatus & 0xFF\fP is returned to the parent process as the process's exit status, and can be collected by the parent using one of the \fBwait\fP(2) family of calls. .PP Funkcja \fB_Exit\fP() jest równoważna \fB_exit\fP(). .SH "WARTOŚĆ ZWRACANA" Funkcje te nigdy nie powracają. .SH "ZGODNE Z" POSIX.1\-2001, POSIX.1\-2008, SVr4, 4.3BSD. Funkcja \fB_Exit()\fP została wprowadzona przez C99. .SH UWAGI Efekty zakończenia, transmisja kodu zakończenia, procesy zombie, przesyłanie sygnałów itp. zostały przedyskutowane w \fBexit\fP(3). .PP Funkcja \fB_exit\fP() jest podobna do \fBexit\fP(3), ale nie wywołuje żadnych funkcji zarejestrowanych za pomocą funkcji \fBatexit\fP(3) lub \fBon_exit\fP(3). Otwarte strumienie \fBstdio\fP(3) nie są\ opróżniane. Z drugiej strony, \fB_exit\fP nie zamyka otwartych deskryptorów plików, co może spowodować nieoczekiwane opóźnienia podczas oczekiwania na zakończenie odłożonych zapisów. Jeśli opóźnienia te są niepożądane, to może być przydatne wywołanie funkcji podobnych do \fItcflush\fP(3) przed wywołaniem \fB_exit\fP(). To, czy jakiekolwiek odłożone we/wy zostanie anulowane i które z nich mogą zostać anulowane podczas \fB_exit\fP(), zależy od implementacji. .SS "Różnice biblioteki C/jądra" In glibc up to version 2.3, the \fB_exit\fP() wrapper function invoked the kernel system call of the same name. Since glibc 2.3, the wrapper function invokes \fBexit_group\fP(2), in order to terminate all of the threads in a process. (The raw \fB_exit\fP() system call terminates only the calling thread.) .SH "ZOBACZ TAKŻE" \fBexecve\fP(2), \fBexit_group\fP(2), \fBfork\fP(2), \fBkill\fP(2), \fBwait\fP(2), \fBwait4\fP(2), \fBwaitpid\fP(2), \fBatexit\fP(3), \fBexit\fP(3), \fBon_exit\fP(3), \fBtermios\fP(3) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 5.10 projektu Linux \fIman\-pages\fP. Opis projektu, informacje dotyczące zgłaszania błędów oraz najnowszą wersję oryginału można znaleźć pod adresem \%https://www.kernel.org/doc/man\-pages/. .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Przemek Borys , Andrzej Krzysztofowicz i Michał Kułach . Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach licencji można uzyskać zapoznając się z .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License w wersji 3 .UE lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI. Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres .MT manpages-pl-list@lists.sourceforge.net .ME .