IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

sigqueue (2)

SIGQUEUE(2)                Linux Programmer's Manual               SIGQUEUE(2)



NAME
       sigqueue - queue a signal and data to a process

SYNOPSIS
       #include<signal.h>

       intsigqueue(pid_t pid,int sig,constunionsigval value);

DESCRIPTION
       sigqueue()  sends  the signal specified in sig to the process whose PID
       is given in pid.  The permissions required to send  a  signal  are  the
       same  as for kill(2).  As with kill(2), the null signal (0) can be used
       to check if a process with a given PID exists.

       The value argument is used to specify  an  accompanying  item  of  data
       (either  an integer or a pointer value) to be sent with the signal, and
       has the following type:

         union sigval {
             int   sival_int;
             void *sival_ptr;
         };

       If the receiving process has installed a handler for this signal  using
       the  SA_SIGINFO  flag to sigaction(2), then it can obtain this data via
       the si_value field of the siginfo_t  structure  passed  as  the  second
       argument to the handler.  Furthermore, the si_code field of that struc-
       ture will be set to SI_QUEUE.

RETURNVALUE
       On success, sigqueue() returns 0, indicating that the signal  was  suc-
       cessfully queued to the receiving proces.  Otherwise -1 is returned and
       errno is set to indicate the error.

ERRORS
       EAGAIN The limit of signals which may be queued has been reached.  (See
              signal(7) for further information.)

       EINVAL sig was invalid.

       ESRCH  No process has a PID matching pid.

       EPERM  The  process  does not have permission to send the signal to the
              receiving process.  (See kill(2) for further information.)

NOTES
       If this function results in the sending of a signal to the process that
       invoked  it, and that signal was not blocked by the calling thread, and
       no other threads were willing to handle this signal (either  by  having
       it  unblocked,  or  by  waiting for it using sigwait(3)), then at least
       some signal must be delivered  to  this  thread  before  this  function
       returns.

CONFORMINGTO
       POSIX 1003.1-2001

SEEALSO
       kill(2), sigaction(2), signal(2), sigwait(3), signal(7)



Linux 2.4.18                      2002-06-07                       SIGQUEUE(2)

_Exitgetsockoptoutwshmat
_exitgettidoutw_pshmctl
_llseekgettimeofdaypauseshmdt
_newselectgetuidpersonalityshmget
_sysctlgttypipeshmop
acceptidlepivot_rootshutdown
accessinbpollsigaction
acctinb_pprctlsigaltstack
adjtimexinlpreadsigblock
afs_syscallinl_pprofsiggetmask
alarminsbpselectsigmask
alloc_hugepagesinslptracesignal
arch_prctlinswpwritesigpause
bdflushintroquotactlsigpending
bindinwreadsigprocmask
breakinw_preaddirsigqueue
brkioctlreadlinksigreturn
cacheflushioctl_listreadvsigsetmask
capgetiopermrebootsigsuspend
capsetioplrecvsigtimedwait
chdiripcrecvfromsigvec
chmodkillrecvmsgsigwaitinfo
chownkillpgrenamesocket
chrootlchownrmdirsocketcall
clonelinksbrksocketpair
closelistensched_get_priority_maxssetmask
connectllseeksched_get_priority_minstat
creatlocksched_getaffinitystatfs
duplseeksched_getparamstime
dup2lstatsched_getschedulerstty
execvemadvisesched_rr_get_intervalswapoff
exitmincoresched_setaffinityswapon
fchdirmkdirsched_setparamsymlink
fchmodmknodsched_setschedulersync
fchownmlocksched_yieldsyscall
fcntlmlockallselectsyscalls
fdatasyncmmapselect_tutsysctl
flockmmap2semctlsysfs
forkmodify_ldtsemgetsysinfo
free_hugepagesmountsemopsyslog
fstatmprotectsendtime
fstatfsmpxsendfiletimes
fsyncmremapsendmsgtkill
ftruncatemsgctlsendtotruncate
futexmsggetsetcontextumask
getcontextmsgopsetdomainnameumount
getdentsmsgrcvsetegidumount2
getdomainnamemsgsndseteuiduname
getdtablesizemsyncsetfsgidundocumented
getegidmunlocksetfsuidunimplemented
geteuidmunlockallsetgidunlink
getgidmunmapsetgroupsuselib
getgroupsnanosleepsethostidustat
gethostidnfsservctlsethostnameutime
gethostnamenicesetitimerutimes
getitimerobsoletesetpgidvfork
getpagesizeoldfstatsetpgrpvhangup
getpeernameoldlstatsetpriorityvm86
getpgidoldoldunamesetregidwait
getpgrpoldstatsetresgidwait3
getpidoldunamesetresuidwait4
getppidopensetreuidwaitpid
getpriorityoutbsetrlimitwrite
getresgidoutb_psetsidwritev
getresuidoutlsetsockopt 
getrlimitoutl_psettimeofday 
getrusageoutsbsetuid 
getsidoutslsetup 


The Gimp 2.6.3
GNU Image Manipulation Program
Linux Kernel 2.6 2.6.27.7
Linux Kernel
Battle for Wesnoth 1.4.6
Fantasy Turn-Based Strategy Game
DeleGate 9.9.0-pre8
Proxy server which runs on multiple platforms
Safesquid proxy server 4.2.2.RC8.14B
Antivirus and content filtering proxy server
Thunderbird 2.0.0.18
An email and newsgroup client with powerful, new junk mail controls
Wine 1.1.9
Free implementation of Windows on Unix
WebGUI 7.5.34
A fully featured content management system.
KOffice 2.0 beta3
Integrated office suite for KDE
LimeWire 4.18.8
Gnutella Client
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

eWeek

The essential technology information source for builders of e-business.

BusinessWeek (Digital Edition)

Provides readers a deeper understanding of the trends that drive growth, and what best practices keep them ahead of the competition.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info