Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (HP-UX-11.11)
Apropos / Subsearch:
optional field

 killpg(2)							   killpg(2)

      killpg, getpgrp, setpgrp, signal - 4.2 BSD-compatible process control

      #include <&lt&lt&lt;signal.h>&gt&gt&gt;

      int killpg(int pgrp, int sig);

      int getpgrp(int pid);

      int setpgrp(int pid, int pgrp);

      void (*signal(int sig, void (*func)(int)))(int);

    Obsolescent Interfaces
      int sigvec(
	   int sig,
	   struct sigvec *vec,
	   struct sigvec *ovec

      These calls simulate (and are provided for backward compatibility
      with) functions of the same name in the 4.2 Berkeley Software

      This version of setpgrp() is equivalent to the system call
      setpgid(pid, pgrp) (see setpgid(2)).

      This version of getpgrp() is equivalent to the system call
      getpgrp2(pid) (see getpid(2)).

      killpg() is equivalent to the system call kill(-pgrp, sig) (see

      The function sigvec() is no longer supported.  Please see the manual
      page for sigaction(2).

      This version of signal() has the same effect as sigvec(sig,
      vec, ovec), where vec->sv_handler is equal to func, vec->sv_mask is
      equal to 0, and vec->sv_flags is equal to 0.  signal() returns the
      value that would be stored in ovec->sv_handler if the equivalent
      sigvec() call would have succeeded.  Otherwise, signal() returns -1
      and errno is set to indicate the reason as it would have been set by
      the equivalent call to sigvec().

      For applications that use BSD signal, it is recommended that they use
      sigaction(2).  The system supports an alternative with similar
      behavior to Berkeley Software Distribution, and the API is bsd_signal
      but its use is not recommended.

 Hewlett-Packard Company	    - 1 -   HP-UX Release 11i: November 2000

 killpg(2)							   killpg(2)

      While the 4.3 BSD release defined extensions to some of the interfaces
      described here, only the 4.2 BSD interfaces are emulated by this

      bsdproc() should not be used in conjunction with the facilities
      described under sigset(3C).

    Obsolescent Interfaces
      The function sigvec() is no longer supported.  Please see the manual
      page for sigaction(2).

    Threads Considerations
      The signal disposition (such as catch/ignore/default) established by
      sigvec() and signal() is shared by all threads in the process.

      For more information regarding signals and threads, refer to

      bsdproc() was developed by HP and the University of California,

      ld(1), kill(2), getpid(2), msgop(2), msgsnd(2), msgrcv(2), read(2),
      semop(2), setpgid(2), setsid(2), sigvector(2), wait(2), write(2),
      sigaction(2) sigset(3C), sigstack(2), bsd_signal(3C), signal(5).

 Hewlett-Packard Company	    - 2 -   HP-UX Release 11i: November 2000