Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sigblock(2) [osf1 man page]

sigblock(2)							System Calls Manual						       sigblock(2)

sigblock - Provides a compatibility interface to the sigprocmask function LIBRARY
Standard C Library (libc.a) SYNOPSIS
int sigblock( int mask ); PARAMETERS
Specifies the signals to be added to the set of signals currently being blocked from delivery. DESCRIPTION
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. NOTES
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. RETURN VALUES
On completion, the previous set of masked signals is returned. RELATED INFORMATION
Functions: kill(2), sigaction(2), sigpause(3), sigprocmask(2), sigsuspend(2), sigvec(2) delim off sigblock(2)

Check Out this Related Man Page

SIGSETMASK(2)						      BSD System Calls Manual						     SIGSETMASK(2)

sigsetmask, sigblock -- manipulate current signal mask LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <signal.h> int sigsetmask(int mask); int sigblock(int mask); int sigmask(int signum); DESCRIPTION
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. RETURN VALUES
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
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Kill with signals

Hi all, 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. Thanks. Myriam (3 Replies)
Discussion started by: bz0rxf
3 Replies

2. Programming

Function in a blocked state.

Hi, How do you write a function which has to stay blocked in a wait state till an event occurs? The event could be the arrival of a message/updation of a database etc .. Regards, VJ (2 Replies)
Discussion started by: vjsony
2 Replies

3. Programming

keypress signals

How-to use keypress action signals in C? Is there any nice select or poll functions for that? (1 Reply)
Discussion started by: Esaia
1 Replies

4. IP Networking

School Blocking

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)
Discussion started by: Satine
1 Replies

5. Programming

Problem with signals - 3 process communication

Hello, 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)
Discussion started by: Nightwright
2 Replies

6. Programming

How to block or ignore signals from certain processes?

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)
Discussion started by: aaronwong
4 Replies

7. UNIX for Advanced & Expert Users

Process signals as administration

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)
Discussion started by: thmnetwork
2 Replies

8. UNIX for Dummies Questions & Answers

What is the number of the masked code ee@ ?

What is the number of the masked code ee@ ? if anyone has reference doco on mask code numbers. pls send the link. thanks in advance (0 Replies)
Discussion started by: learner_
0 Replies

9. Programming

add more user-defined signals

Hi Is there a way to add more user-defined signals? I am currently using SIGUSR1 and SIGUSR2 - but I need another one. How can I do that? Thanks! (9 Replies)
Discussion started by: naamabm
9 Replies

10. UNIX for Advanced & Expert Users

Date on which a user is blocked

I work on AIX 5.3 and need to know if is possible to know the date on which a user is blocked. Thank you. (1 Reply)
Discussion started by: cmr88
1 Replies

11. Solaris

What is the replace of system call sigblock on sunOS 5.10

Hi: 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)
Discussion started by: sean88z
1 Replies

12. UNIX for Dummies Questions & Answers

function parameter issue

hi, 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)
Discussion started by: amar1003
5 Replies

13. UNIX for Advanced & Expert Users

Convert variable blocked file

Dear All, 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)
Discussion started by: coolmaninit
1 Replies

14. UNIX for Dummies Questions & Answers

Do UNIX signals produce interrupts?

Hi folks! 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)
Discussion started by: Tru69
3 Replies

Featured Tech Videos