Sponsored Content
Full Discussion: Handling SIGUSR2 signal
Top Forums UNIX for Advanced & Expert Users Handling SIGUSR2 signal Post 90283 by jim mcnamara on Monday 21st of November 2005 10:18:19 AM
Old 11-21-2005
M - You're correct, it can be the use of signal(). But without code I have no clue what's going on.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

signal handling in shell script

Hi can any please tell me is it possible to catch the signal in a shell script like we do in C. if yes please give me some idea or a link. (4 Replies)
Discussion started by: Raom
4 Replies

2. UNIX for Advanced & Expert Users

I have a problem using signal SIGUSR2

hi I have created a application which uses SIGUSR2. It send this signal to server and waits for signal SIGUSR2 from server after server performing some operation server sends SIGUSR2 back to the application. The application then quits. This works fine which ran from terminal , but when I... (3 Replies)
Discussion started by: khan_069
3 Replies

3. Programming

Signal Handling

Hi folks I'm trying to write a signal handler (in c on HPUX) that will catch the child process launched by execl when it's finished so that I can check a compliance file. The signal handler appears to catch the child process terminating however when the signal handler completes the parent... (3 Replies)
Discussion started by: themezzaman
3 Replies

4. Shell Programming and Scripting

Signal handling in Perl

Guys, I'm doing signal handling in Perl. I'm trying to catch ^C signal inside the script. There two scripts : one shell script and one perl script. The shell script calls the perl script. For e.g. shell script a.sh and perl scipt sig.pl. Shell script a.sh looks something like this :... (6 Replies)
Discussion started by: obelix
6 Replies

5. Programming

signal handling question

Hello all, I am starting to learn signal handling in Linux and have been trying out some simple codes to deal with SIGALRM. The code shown below sets a timer to count down. When the timer is finished a SIGALRM is produced. The handler for the signal just increments a variable called count. This... (7 Replies)
Discussion started by: fox_hound_33
7 Replies

6. Programming

signal handling while in a function other than main

Hi, I have a main loop which calls a sub loop, which finally returns to the main loop itself. The main loop runs when a flag is set. Now, I have a signal handler for SIGINT, which resets the flag and thus stops the main loop. Suppose I send SIGINT while the program is in subloop, I get an error... (1 Reply)
Discussion started by: Theju
1 Replies

7. Programming

Signal Handling and Context Switches

Hi guys, this is my first posting, so at first hi to everyone! ;) I have a problem with ucontext_t in connection with signal handling. I want to simulate a preemptive scheduler. I am using the iTimer with ITIMER_PROF, to schedule the interrupts. You find the code below: #include <stdio.h>... (18 Replies)
Discussion started by: XComp
18 Replies

8. Programming

Signal handling

I am trying to write a small program where I can send signals and then ask for an action to be triggered if that signal is received. For example, here is an example where I am trying to write a programme that will say you pressed ctrl*c when someone presses ctrl+c. My questions are what you would... (1 Reply)
Discussion started by: #moveon
1 Replies

9. UNIX and Linux Applications

SIGSEGV Signal handling

Hello, Can anybody tell me how can i handle segmentation fault signal, in C code? (2 Replies)
Discussion started by: mustus
2 Replies

10. Programming

problem in reforking and signal handling

hi friends i have a problem in signal handling ... let me explain my problem clearly.. i have four process .. main process forks two child process and each child process again forks another new process respectively... the problem is whenever i kill the child process it is reforking and the... (2 Replies)
Discussion started by: senvenugopal
2 Replies
SIGPROCMASK(2)							System Calls Manual						    SIGPROCMASK(2)

NAME
sigprocmask - manipulate the signal mask SYNOPSIS
#include <signal.h> int sigprocmask(int how, const sigset_t *set, sigset_t *oset) DESCRIPTION
Sigprocmask() examines or manipulates the signal mask. This mask is the set of signals that are currently blocked. The how argument determines the action that must be performed. In all cases the signal set referenced by oset, if not NULL, will be used to receive the old signal mask. The set argument, if not NULL, will be used to set or modify the current signal mask. How can be one of: SIG_BLOCK Add the signals referenced by set to the mask. SIG_UNBLOCK Remove the signals referenced by set from the mask. SIG_SETMASK Set the signal mask to the set referenced by set. The value of how is ignored if set is NULL. SEE ALSO
sigaction(2), sigpending(2), sigsuspend(2), sigset(3). DIAGNOSTICS
Returns 0 on success and -1 on error. The error code is EFAULT for a bad set or oset address, or EINVAL for a bad how argument. AUTHOR
Kees J. Bot (kjb@cs.vu.nl) SIGPROCMASK(2)
All times are GMT -4. The time now is 06:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy