.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1980, 1991 Regents of the University of California. .\" All rights reserved. .\" .\" SPDX-License-Identifier: BSD-4-Clause-UC .\" .\" @(#)killpg.2 6.5 (Berkeley) 3/10/91 .\" .\" Modified Fri Jul 23 21:55:01 1993 by Rik Faith .\" Modified Tue Oct 22 08:11:14 EDT 1996 by Eric S. Raymond .\" Modified 2004-06-16 by Michael Kerrisk .\" Added notes on CAP_KILL .\" Modified 2004-06-21 by aeb .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH killpg 3 "5 lutego 2023 r." "Linux man\-pages 6.03" .SH NAZWA killpg \- wysłanie sygnału do grupy procesów .SH BIBLIOTEKA Standardowa biblioteka C (\fIlibc\fP, \fI\-lc\fP) .SH SKŁADNIA .nf \fB#include \fP .PP \fBint killpg(int \fP\fIpgrp\fP\fB, int \fP\fIsig\fP\fB);\fP .fi .PP .RS -4 Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .RE .PP \fBkillpg\fP(): .nf .\" || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED _XOPEN_SOURCE >= 500 || /* Od glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE .fi .SH OPIS \fBkillpg\fP() wysyła sygnał \fIsig\fP do grupy procesów \fIpgrp\fP. Lista synałów znajduje się w \fBsigaction\fP(2). .PP If \fIpgrp\fP is 0, \fBkillpg\fP() sends the signal to the calling process's process group. (POSIX says: if \fIpgrp\fP is less than or equal to 1, the behavior is undefined.) .PP For the permissions required to send a signal to another process, see \fBkill\fP(2). .SH "WARTOŚĆ ZWRACANA" On success, zero is returned. On error, \-1 is returned, and \fIerrno\fP is set to indicate the error. .SH BŁĘDY .TP \fBEINVAL\fP \fIsig\fP nie jest prawidłowym numerem sygnału. .TP \fBEPERM\fP The process does not have permission to send the signal to any of the target processes. For the required permissions, see \fBkill\fP(2). .TP \fBESRCH\fP Nie znaleziono żadnego procesu w grupie określonej przez \fIpgrp\fP. .TP \fBESRCH\fP Podano zerową grupę, lecz proces wysyłający nie ma grupy procesów. .SH STANDARDY POSIX.1\-2001, POSIX.1\-2008, SVr4, 4.4BSD (\fBkillpg\fP() first appeared in 4BSD). .SH UWAGI There are various differences between the permission checking in BSD\-type systems and System\ V\-type systems. See the POSIX rationale for \fBkill\fP(3p). A difference not mentioned by POSIX concerns the return value \fBEPERM\fP: BSD documents that no signal is sent and \fBEPERM\fP returned when the permission check failed for at least one target process, while POSIX documents \fBEPERM\fP only when the permission check failed for all target processes. .SS "Różnice biblioteki C/jądra" On Linux, \fBkillpg\fP() is implemented as a library function that makes the call \fIkill(\-pgrp,\ sig)\fP. .SH "ZOBACZ TAKŻE" \fBgetpgrp\fP(2), \fBkill\fP(2), \fBsignal\fP(2), \fBcapabilities\fP(7), \fBcredentials\fP(7) .PP .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Przemek Borys i Andrzej Krzysztofowicz . .PP Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach licencji można uzyskać zapoznając się z .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License w wersji 3 .UE lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI. .PP Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres listy dyskusyjnej .MT manpages-pl-list@lists.sourceforge.net .ME .