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