sigblock(2) System Calls Manual sigblock(2)NAME
sigblock - Provides a compatibility interface to the sigprocmask function
Standard C Library (libc.a)
int sigblock( int mask );
Specifies the signals to be added to the set of signals currently being blocked from delivery.
The sigblock() function causes the signals specified by the mask parameter to be added to the set of signals currently being blocked from
delivery. The signals are blocked from delivery by logically ORing the mask parameter into the signal mask of the process. Signal i is
blocked if the i-th bit in the mask parameter is a value of 1. Only signals with values 1-31 can be masked with the sigblock() function.
It is not possible to block SIGKILL. The system provides no indication of this restriction.
The sigblock() function is provided for compatibility to other UNIX systems. Its function is a subset of the sigprocmask() function.
On completion, the previous set of masked signals is returned.
Functions: kill(2), sigaction(2), sigpause(3), sigprocmask(2), sigsuspend(2), sigvec(2) delim off
Check Out this Related Man Page
SIGSETMASK(2) BSD System Calls Manual SIGSETMASK(2)NAME
sigsetmask, sigblock -- manipulate current signal mask
Standard C Library (libc, -lc)
This interface is made obsolete by: sigprocmask(2).
The sigsetmask() function sets the current signal mask to the specified mask. Signals are blocked from delivery if the corresponding bit in
mask is a 1. The sigblock() function adds the signals in the specified mask to the current signal mask, rather than overwriting it as
sigsetmask() does. The macro sigmask() is provided to construct the mask for a given signum.
The system quietly disallows SIGKILL or SIGSTOP to be blocked.
The sigblock() and sigsetmask() functions return the previous set of masked signals.
SEE ALSO kill(2), sigaction(2), sigprocmask(2), sigsuspend(2), sigvec(2), sigsetops(3)HISTORY
The sigsetmask() and sigblock() functions first appeared in 4.2BSD and have been deprecated.
BSD June 2, 1993 BSD
I am a beginning UNIX user and am looking for a list of possible signals (with explanation) that can be used with the command kill.
Any input would be much appreciated.
Myriam (3 Replies)
I'm in highschool. They blocked my favorite site. How do I disable websense without getting caught on that particular webpage? Is it even possible? *twitch* I would also like to get as much UNIX for beginners information, so if someone might point me in the right direction so I don't have to read... (1 Reply)
I would like to ask you for a little help with program I'm working on. I have problems with signals and synchronizing processes (I'm quite new to this part of programming).
Process "parent" creates new child process "child1" and this process creates new child process "child2". The... (2 Replies)
We know that a process can block certain signals by call sigprocmask(), but sometimes we may want to block signals from certain processes for safety concerning.
For example, a system may have a process management daemon, and it will response to certain signals from certain processes managed by... (4 Replies)
Too generic to post elsewhere, too advanced for the newbie forums. There are some applications within the unix/linux milieu that understand signals such as SIGHUP, etc as instructions to perform administrative tasks (clearing information out of this, disconnect users, etc.) I was just wondering if... (2 Replies)
I have some old code need to be compiled - which include a system call, the function name is: sigblock like:
int holdnum = sigblock(sigmask(SIGCHLD));
but the compiler told me the sigblock cannot be found even I include signal.h. Looks like it is depricated - but I need to... (1 Reply)
i have a function say "mask". i'm passing parameters to the function like file_name \$1 |.
inside the function i'm naming the second parameter as position (i.e value of position will be "$1").
i'm passing the position's value like " $position=a"
But it is nor picking the value "$1".... (5 Replies)
I am receiving Fixed blocked file from AS/400 system to my unix box. Could you please advise us how to convert this fix blocked file to variable blocked file. Do we have any command in Unixt or program.
I am new to this Unix system
Thanks & Regards,
Colam (1 Reply)
I have been reading Vahalia's Unix Internals book, which states the following in the chapter dedicated to signals:
Given that, my understanding is that processes running in user mode don't become aware of signals until they switch to kernel mode, where the issig() function is called... (3 Replies)