Debian Codegraph @

pod/exit.pod

raw
1 # Copyright (c) 1993 The Regents of the University of California.
2 # Copyright (c) 1994-1996 Sun Microsystems, Inc.
3 # See the file "license.terms" for information on usage and redistribution
4 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
5 #
6 #
7
8 =head1 NAME
9
10 Tk::exit - End the application
11
12 =for category Binding Events and Callbacks
13
14 =head1 SYNOPSIS
15
16 use Tk qw(exit);
17 ...
18 B<exit>?(I<returnCode>)?;
19
20 =head1 DESCRIPTION
21
22 Terminate the process, returning I<returnCode> to the
23 system as the exit status.
24 If I<returnCode> isn't specified then it defaults
25 to 0.
26
27 If calling C<exit> from code invoked via a Tk callback then
28 this Tk version of C<exit> cleans up more reliably than using
29 the perl C<exit>.
30
31 =head1 CAVEATS
32
33 Using C<exit> from a forked process will terminate both the child
34 process B<and> the parent process. As C<Tk::exit> is imported by
35 default one should use C<CORE::exit> in the forked process instead.
36
37 =head1 KEYWORDS
38
39 exit, process
40
41 =cut
42