01-20-2002
As far as I know ( I'm no expert
![Smilie Smilie](https://www.unix.com/images/smilies/smile.gif)
) if you want to work with signals you should
include signal.h
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am newbie to unix. I am been immensily impressed by this forum. I have installed sun solaris in my pc and started learning unix. The question is, If i know one unix flavour (say sun solaris) is that i can claim, i know all the unix and linux flavours. Can i be able to work on other vendor... (3 Replies)
Discussion started by: Balaji
3 Replies
2. UNIX for Dummies Questions & Answers
I'm running Vector Linux on this computer, and everythign works fine, except for the NIC. I run netconfig, and then when I reboot it says:
DC21140 at 0x9400(PCI BUS 0, device 11) h/w address 00:00:C0:2E:13:dC, and reqquires IRQ 9(provided by PCI BIOS)
Setting up net subsytems.
... (5 Replies)
Discussion started by: Corey
5 Replies
3. UNIX for Dummies Questions & Answers
I wanna to install a COBOL on the AIX unix server. Would u like to tell me the disk usage of COBOL installation?
Thanks in advance. (2 Replies)
Discussion started by: GCTEII
2 Replies
4. Programming
Hi all,
Just a little question relative to signals.
I know that if an application is in the sleep state, When a signal is catched, it will be processed by the handler. But what happens if it's processing something? Does the processing stops??
The following code should illustrate this case
... (2 Replies)
Discussion started by: ninjanesto
2 Replies
5. HP-UX
hi, just starting to learn about unix in school. got stuck on shell script chapter and need some help i completed task one but the other four is byond me.
Task 1) Write a shell script/program called dow that takes no arguments and displays just the current day of the week in lower case (i.e.... (2 Replies)
Discussion started by: wesleywu
2 Replies
6. Shell Programming and Scripting
Wasn't really sure where to put this, since I'm using C in UNIX, but I am making my own shell... so, what's going on is this:
For our program, we had to create our own shell, and if the user pressed ctrl-c just at the cmdline, then this signal would be ignored, but if there is a foreground... (1 Reply)
Discussion started by: blind melon
1 Replies
7. UNIX for Dummies Questions & Answers
Hello everyone,
Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware.
I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies
8. Shell Programming and Scripting
Whats a signal 0. An exhaustive search on signals landed me nowhere.
Is it possible to do something like this trap "echo $var" 0.
If so what signal does this trap catch ? (2 Replies)
Discussion started by: kinny
2 Replies
9. Solaris
I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies
10. Programming
how can do this programs in c++
Program description:
Infinite loop in a program starts working with 2 seconds the screen (console) "I 'm trying" to write, but it automatically after 10 seconds, the screen "Close" will terminate the execution of typing.
c++ code (3 Replies)
Discussion started by: ss54
3 Replies
LEARN ABOUT OPENSOLARIS
sigsetmask
sigblock(3UCB) SunOS/BSD Compatibility Library Functions sigblock(3UCB)
NAME
sigblock, sigmask, sigpause, sigsetmask - block signals
SYNOPSIS
/usr/ucb/cc [ flag ... ] file ...
#include <signal.h>
int sigblock(mask)
int mask;
int sigmask(signum)
int signum;
int sigpause(mask)
int mask;
int sigsetmask(mask)
int mask;
DESCRIPTION
sigblock() adds the signals specified in mask to the set of signals currently being blocked from delivery. Signals are blocked if the
appropriate bit in mask is a 1; the macro sigmask is provided to construct the mask for a given signum. sigblock() returns the previous
mask. The previous mask may be restored using sigsetmask().
sigpause() assigns mask to the set of masked signals and then waits for a signal to arrive; on return the set of masked signals is
restored. mask is usually 0 to indicate that no signals are now to be blocked. sigpause() always terminates by being interrupted, returning
-1 and setting errno to EINTR.
sigsetmask() sets the current signal mask (those signals that are blocked from delivery). Signals are blocked if the corresponding bit in
mask is a 1; the macro sigmask is provided to construct the mask for a given signum.
In normal usage, a signal is blocked using sigblock(). To begin a critical section, variables modified on the occurrence of the signal are
examined to determine that there is no work to be done, and the process pauses awaiting work by using sigpause() with the mask returned by
sigblock().
It is not possible to block SIGKILL, SIGSTOP, or SIGCONT, this restriction is silently imposed by the system.
RETURN VALUES
sigblock() and sigsetmask() return the previous set of masked signals. sigpause() returns -1 and sets errno to EINTR.
SEE ALSO
cc(1B), kill(2), sigaction(2), signal(3UCB), sigvec(3UCB)
NOTES
Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the system
libraries or in multi-thread applications is unsupported.
SunOS 5.11 30 Oct 2007 sigblock(3UCB)