09-17-2014
Continue Processing after a signal is caught
Is it possible to continue after signal is caught and control goes to function specified in the trap statement?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Can any body give example of using Unix Signals. What I want to do is
I am running a sql query in a shell script
I want, if sql query exceed the defined no. of seconds limit, then I would like to kill the process.
I know this can be done thru Unix Signal Handling but I do not know... (8 Replies)
Discussion started by: sanjay92
8 Replies
2. AIX
Hello,
We are using AIX 5.2 ML 7.
One of the process in its log file said the following and stopped running.
Caught signal=5, exiting.
What would cause the signal 5 to be generated on an AIX box.
Please advise.
Thx
Jerardfjay (2 Replies)
Discussion started by: jerardfjay
2 Replies
3. Programming
We have written a deamon which have many threads.
We are registering for the SIGTERM and trying to close main thread in this signal handling. Actually these are running on Mac OS X ( BSD unix). When we are unloading the deamon with command launchctl, it's sending SIGTERM signal to our process... (1 Reply)
Discussion started by: Akshay4u
1 Replies
4. Solaris
Rebuilding a server (T2000) from a flash archive I created on another server. Using a Solaris 10/08 DVD to boot from the was going to point it tot he flash archive and pull it over NFS. I've done this many times with success until now.
It initially boots off the DVD, you input the... (5 Replies)
Discussion started by: Probos
5 Replies
5. Shell Programming and Scripting
hi all....
plz tel me how can i solve this....here's the situation (just a sample!!)..
$ cat sigtrap
#!/usr/bin/perl
$SIG{'INT'} = 'ABORT';
sub ABORT {
print "\nStop the loop?? (y/n) : ";
chop($ch=<STDIN>);
if ($ch =~ //)
{
... (3 Replies)
Discussion started by: tprayush
3 Replies
6. Solaris
Hi,
I am pretty new to Solaris and am trying to upgrade from the OBP.
I go through the process of booting from the cdrom, entering all necessary information and running the upgrade. The system completes analysis and then fail with the
EXITING (caught signal 11) error
I believe that... (5 Replies)
Discussion started by: Seanliam
5 Replies
7. Shell Programming and Scripting
Is there a way to do this?
while getopts "n:g:m:i:p:d:a:" OPTION
do
case $OPTION in
...
if i do a ./script.sh -n john -u user -p password, it will output:
name= john
./script.sh: illegal option -- u
Is there a way to skip over errors so that -p will get processed as well?
By... (7 Replies)
Discussion started by: etranman1
7 Replies
8. Solaris
I get an error after the initializing screen. I am using a DVD/ROM to boot up the installation on a Dell Inspiron 1520. Segmentation fault - core dumped. I have tried to restart multiple times. Please help (1 Reply)
Discussion started by: Jimasaurus
1 Replies
9. Solaris
I created a new Virtual machine and was trying to install Solaris but keep getting this error.:confused:
EXITING (caught signal 11)
Type "install-solaris to restart"
Can't find anything on Google.
This is the iso image I am using "sol-10-u11-ga-x86-dvd"
Followed all the instructions on... (5 Replies)
Discussion started by: newborndba
5 Replies
pause(3) Library Functions Manual pause(3)
NAME
pause - Suspends a process until it receives a signal
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <unistd.h>
int pause( void );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
pause(): POSIX.1, XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The pause() function suspends the calling process until it receives a signal whose action is either to execute a signal-catching function
or terminate the process. The signal must be one that is acknowledged by the calling process. The pause() function does not affect the
action taken when a signal is received.
The pause() function suspends the calling process by suspending the calling thread. Other threads in the process, if any, are not sus-
pended.
RETURN VALUES
When the received signal causes the calling process to terminate, the pause() function does not return.
When the signal is caught by the calling process and control is returned from the signal-catching function, the calling thread resumes exe-
cution from the point of suspension. At that point, the pause() function returns a value of -1 and sets errno to indicate the error.
ERRORS
The pause() function sets errno to the specified values for the following conditions: The signal has been caught by the calling process and
control has been returned from the signal-catching function.
RELATED INFORMATION
Functions: kill(2), sigaction(2), sigvec(2), wait(2)
Routines: alarm(3)
Standards: standards(5) delim off
pause(3)