• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<assertions>
2  <assertion id="1" tag="ref:XSH6:22101:22101 pt:XSI">
3The killpg () function sends the signal sig to the process
4group pgrp.
5  </assertion>
6  <assertion id="2" tag="ref:XSH6:22102:22102 pt:XSI">
7killpg(pgrp, sig) is equivalent to kill(-pgrp, sig), when pgrp is greater than 1,
8  </assertion>
9  <assertion id="3" tag="ref:XSH6:22102:22103 pt:XSI">
10The behavior of killpg ( ) is undefined if pgrp is less than or equal to 1.
11  </assertion>
12  <assertion id="4" tag="ref:XSH6:22105:22105 pt:XSI">
13killpg returns 0 upon successful completion.
14  </assertion>
15  <assertion id="5" tag="ref:XSH6:22105:22106 pt:XSI">
16killpg returns -1, upon unsuccessful completion.
17  </assertion>
18  <assertion id="6" tag="ref:XSH6:22009:22009 pt:XSI">
19errno shall be set to EINVAL, when tThe value of the sig argument is an
20invalid or unsupported signal
21number.
22  </assertion>
23  <assertion id="7" tag="ref:XSH6:22010:22011 pt:XSI">
24errno shall be set to EPERM, when the process does not have permission to
25send the signal to any
26receiving process.
27  </assertion>
28  <assertion id="8" tag="ref:XSH6:22012:22013 pt:XSI">
29errno shall be set to ESRCH, when no process or process group can be found
30corresponding to that specified by pid.
31  </assertion>
32</assertions>
33
34