SIGRETURN(2) BSD System Calls Manual SIGRETURN(2)NAME
sigreturn -- return from signal
SYNOPSIS
#include <signal.h>
struct sigcontext {
int sc_onstack;
int sc_mask;
int sc_sp;
int sc_fp;
int sc_ap;
int sc_pc;
int sc_ps;
};
int
sigreturn(struct sigcontext *scp);
DESCRIPTION
Sigreturn() allows users to atomically unmask, switch stacks, and return from a signal context. The processes signal mask and stack status
are restored from the context. The system call does not return; the users stack pointer, frame pointer, argument pointer, and processor sta-
tus longword are restored from the context. Execution resumes at the specified pc. This system call is used by the trampoline code and
longjmp(3) when returning from a signal to the previously executing program.
NOTES
This system call is not available in 4.2 BSD hence it should not be used if backward compatibility is needed.
RETURN VALUES
If successful, the system call does not return. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
Sigreturn() will fail and the process context will remain unchanged if one of the following occurs.
[EFAULT] Scp points to memory that is not a valid part of the process address space.
[EINVAL] The process status longword is invalid or would improperly raise the privilege level of the process.
SEE ALSO sigaction(2), setjmp(3)HISTORY
The sigreturn() function call appeared in 4.3BSD.
4.3 Berkeley Distribution June 4, 1993 4.3 Berkeley Distribution
Check Out this Related Man Page
sigreturn(2) System Calls Manual sigreturn(2)NAME
sigreturn - Returns from signal
SYNOPSIS
#include <signal.h>
int sigreturn( struct sigcontext *scp) ;
PARAMETERS
Points to a sigcontext structure whose members contain the processor state to be restored. The contents of the sigcontext structure should
have been previously obtained by entry to a signal handler or by the setjmp() or sigsetjmp() function.
DESCRIPTION
The sigreturn() function restores the processor state of the calling process from a sigcontext structure. The sigcontext structure contains
the state of all application-visible registers as well as the signal mask. The specific members of the sigcontext structure depend on the
machine architecture. Each machine-dependent structure member is defined in the signal.h include file.
The sigreturn() function is used internally by the system software to restore the processor state on return from a signal handler and from
a longjmp() function, to restore the state saved by a previous setjmp() or sigsetjmp() function.
NOTES
An application should only use sigreturn() with great caution.
RETURN VALUES
Upon successful completion, the sigreturn() function does not return. Otherwise, a value of -1 is returned and errno may be set to indi-
cate the error.
ERRORS
If the sigreturn() function fails, the process context remains unchanged and errno is set to one of the following values: The scp parameter
points to memory space that is not a valid part of the process address space. The sigcontext structure contains unsupported or illegal
values.
RELATED INFORMATION
Functions: setjmp(3), sigaction(2), sigvec(2) delim off
sigreturn(2)
Hi all,
One of our programs written in Java, produced this logfile. This job runs 48 threads and only one thread failed with this error. The code is a blackbox(external product), so cant look at the source code. From what I can infer from the log, the job was trying to write the log messages into... (9 Replies)
I am running a jvm dependent installer and it crashes midway between the installation. It throws a Core Dump:
Stack_Trace: error while unwinding stack
( 0) 0xc4007e2c report_and_die__7VMErrorFv + 0x154
( 1) 0xc3ee2628 JVM_handle_hpux_signal__Q2_2os4HpuxSFiP9__siginfoPvT1 + 0xaf8
(... (0 Replies)
Hey,
I have a Red Hat 5.2 machine with :
2.6.18-92.el5 kernel
PRM's:
openssh-4.3p2-29.el5
openssh-clients-4.3p2-29.el5
openssl-0.9.8e-7.el5
openssh-server-4.3p2-29.el5
openssl-0.9.8b-10.el5
openssl-devel-0.9.8e-7.el5
openssh-askpass-4.3p2-29.el5
I'm trying to transfer files to a... (2 Replies)
Hello All,
Sendmail takes too long to start and the host is unable to send emails, below are the steps followed, Please let me know if I'm missing anything, is there a debug mode for mailx?
# time service sendmail restart
Shutting down sm-client:
Shutting... (6 Replies)
Specifically on RHEL 5.7.
When does the underlying ksh process open and close files? Every time they're accessed, or as little as possible?
Say you have some script like:
CreateFiles()
{
grep "<VALUE1>" ${infile} >> ${outfile}
grep "<VALUE2>" ${infile} >> ${outfile}
...... (4 Replies)
Hi,
I am trying to set ulimit for soft stack unlimited, but this is not taking effect, after tracing the ulimit -a unlimited command, the below output was generated, which i am unable to comprehend. Could any one help me with this?
prcbap1-r10prod: truss -d ulimit -s unlimited
Tue Dec 30... (2 Replies)
I'm trying to configure IBM customization Tool Box but i'm facing the following issue don't know where i'm going wrong.
CentOS Linux release 7.2.1511 (Core)
3.10.0-327.18.2.el7.x86_64
run-level 3
xming is working
Unhandled exception
Type=Segmentation error vmState=0xd4c6046e... (0 Replies)