File: _exit.2

package info (click to toggle)
manpages-fr 1.58.1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,104 kB
  • ctags: 4
  • sloc: makefile: 106; sh: 8
file content (99 lines) | stat: -rw-r--r-- 3,332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" 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 (faith@cs.unc.edu)
.\"
.\" Traduction 9/10/1996 par Christophe Blaess (ccb@club-internet.fr)
.\" mj 15/01/02 LDP-man-pages 1.47
.\" mj 18/07/03 LDP-man-pages 1.56
.TH _EXIT 2 "18 juillet 2003" LDP "Manuel du programmeur Linux"
.SH NOM 
_exit, _Exit \- Mettre fin au processus en cours d'excution.
.SH SYNOPSIS
.B #include <unistd.h>
.sp
.BI "void _exit (int " code );
.sp
.B #include <stdlib.h>
.sp
.BI "void _Exit (int " code );
.SH DESCRIPTION
La fonction
.B _exit
met fin "immdiatement" au processus en cours, les descripteurs de
fichiers lui appartenant sont ferms, tous ses fils
ventuels sont hrits par le processus 1 (init),
et son pre reoit un signal
.B SIGCHLD.
.LP
La valeur
.I code
est renvoye au processus pre comme valeur de sortie et peut
tre rcupre en utilisant un appel-systme de
la famille
.B wait.
.LP
La fonction
.B _Exit
est quivalente 
.BR _exit .
.SH "VALEUR RENVOYE"
Ces fonctions ne reviennent jamais.
.SH "CONFORMIT"
SVr4, SVID, POSIX, X/OPEN, BSD 4.3
La fonction \fI_Exit()\fP a t introduite par C99.
.SH NOTES
Pour une discussion sur les effets de exit, la transmission de la valeur de
retour, les processus zombie, les signaux envoys, etc. reportez-vous 
.BR exit (3).
.LP
L'appel-systme
.B _exit
n'appelle aucune fonction programme par la routine
ANSI C
.BR atexit (3),
ni aucun gestionnaire de signal. Le fait qu'elle vide ou non les
buffers d'entre-sortie, ou qu'elle efface les fichiers temporaires crs avec
.BR tmpfile (3)
dpend de l'implmentation.
En revanche,
.B _exit
ferme les descripteurs de fichiers, ce qui peut retarder son excution durant
le temps o des critures se terminent. Si ce retard est gnant, on peut
invoquer \fItcflush()\fP avant
d'appeler \fB_exit()\fP.
Savoir si certaines entres/sorties en attente sont annules lors d'un
\fB_exit()\fP, et lesquelles, dpend de l'implmentation.
.SH "VOIR AUSSI"
.BR fork (2),
.BR execve (2),
.BR waitpid (2), 
.BR wait4 (2),
.BR kill (2),
.BR wait (2),
.BR exit (3),
.BR termios (3).
.SH TRADUCTION
Christophe Blaess, 1996-2003.