1Wait3(3)              User Contributed Perl Documentation             Wait3(3)
2
3
4

NAME

6       Proc::Wait3 - Perl extension for wait3 system call
7

SYNOPSIS

9         use Proc::Wait3;
10
11         ($pid, $status, $utime, $stime, $maxrss, $ixrss, $idrss, $isrss,
12         $minflt, $majflt, $nswap, $inblock, $oublock, $msgsnd, $msgrcv,
13         $nsignals, $nvcsw, $nivcsw) = wait3(0); # doesn't wait
14
15         ($pid, $status, $utime, $stime, $maxrss, $ixrss, $idrss, $isrss,
16         $minflt, $majflt, $nswap, $inblock, $oublock, $msgsnd, $msgrcv,
17         $nsignals, $nvcsw, $nivcsw) = wait3(1); # waits for a child
18

DESCRIPTION

20       If any child processes have exited, this call will "reap" the zombies
21       similar to the perl "wait" function.
22
23       By default, it will return immediately and if there are no dead
24       children, everything will be undefined.  If you pass in a true
25       argument, it will block until a child exits (or it gets a signal).
26
27        $pid         PID of exiting child
28
29        $status      exit status of child, just like C<$?>
30
31        $utime       floating point user cpu seconds
32
33        $stime       floating point system cpu seconds
34
35        $maxrss      the maximum resident set size utilized (in kilobytes).
36
37        $minflt      the number of page faults serviced without any I/O
38                     activity; here I/O activity is avoided by "reclaiming" a
39                     page frame from the list of pages awaiting reallocation.
40
41        $majflt      the number of page faults serviced that required I/O
42                     activity.
43
44        $nswap       the number of times a process was "swapped" out of main
45                     memory.
46
47        $inblock     the number of times the file system had to perform input.
48
49        $oublock     the number of times the file system had to perform output.
50
51        $msgsnd      the number of messages sent over sockets.
52
53        $msgrcv      the number of messages received from sockets.
54
55        $nsignals    the number of signals delivered.
56
57        $nvcsw       the number of times a context switch resulted due to a
58                     process voluntarily giving up the processor before its
59                     time slice was completed (usually to await availability of
60                     a resource).
61
62        $nivcsw      the number of times a context switch resulted due to a
63                     higher priority process becoming runnable or because the
64                     current process exceeded its time slice.
65

AUTHOR

67       C. Tilmes <curt@tilmes.org>
68

LICENSE

70       This is free software; you can redistribute it and/or modify it under
71       the same terms as the Perl 5 programming language system itself.
72

SEE ALSO

74       perl, wait3, getrusage.
75
76
77
78perl v5.36.0                      2023-01-20                          Wait3(3)
Impressum