SIGRETURN(2) Linux Programmer's Manual SIGRETURN(2)NAME
sigreturn - return from signal handler and cleanup stack frame
SYNOPSIS
int sigreturn(unsigned long __unused);
DESCRIPTION
When the Linux kernel creates the stack frame for a signal handler, a call to sigreturn() is inserted into the stack frame so that upon
return from the signal handler, sigreturn() will be called.
This sigreturn() call undoes everything that was done--changing the process's signal mask, switching stacks (see sigaltstack(2))--in order
to invoke the signal handler: it restores the process's signal mask, switches stacks, and restores the process's context (registers, pro-
cessor flags), so that the process directly resumes execution at the point where it was interrupted by the signal.
RETURN VALUE
sigreturn() never returns.
FILES
/usr/src/linux/arch/i386/kernel/signal.c
/usr/src/linux/arch/alpha/kernel/entry.S
CONFORMING TO
sigreturn() is specific to Linux and should not be used in programs intended to be portable.
NOTES
The sigreturn() call is used by the kernel to implement signal handlers. It should never be called directly. Better yet, the specific use
of the __unused argument varies depending on the architecture.
SEE ALSO kill(2), sigaltstack(2), signal(2), signal(7)COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2008-06-26 SIGRETURN(2)
Check Out this Related Man Page
SIGRETURN(2) Linux Programmer's Manual SIGRETURN(2)NAME
sigreturn - return from signal handler and cleanup stack frame
SYNOPSIS
int sigreturn(unsigned long __unused);
DESCRIPTION
When the Linux kernel creates the stack frame for a signal handler, a call to sigreturn() is inserted into the stack frame so that upon
return from the signal handler, sigreturn() will be called.
This sigreturn() call undoes everything that was done--changing the process's signal mask, switching stacks (see sigaltstack(2))--in order
to invoke the signal handler: it restores the process's signal mask, switches stacks, and restores the process's context (registers, pro-
cessor flags), so that the process directly resumes execution at the point where it was interrupted by the signal.
RETURN VALUE
sigreturn() never returns.
FILES
/usr/src/linux/arch/i386/kernel/signal.c
/usr/src/linux/arch/alpha/kernel/entry.S
CONFORMING TO
sigreturn() is specific to Linux and should not be used in programs intended to be portable.
NOTES
The sigreturn() call is used by the kernel to implement signal handlers. It should never be called directly. Better yet, the specific use
of the __unused argument varies depending on the architecture.
SEE ALSO kill(2), restart_syscall(2), sigaltstack(2), signal(2), signal(7)COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2013-07-30 SIGRETURN(2)
Hello
Today I installed OpenBSD, and it went great (I hope)
But I'm a little confused.. I've run ŽLinux slackware before, and when I recompiled the kernel there, I did it in /usr/src/linux-xxx
But in OpenBSD the /usr/src dir is empty!
And how do I get X-windows to work? I tried to... (2 Replies)
Hi,
Recently I was reading some c coding by some colleagues and I noticed that the above trend. They will create a pipe for the process then they will use the standard signal handler to capture a particular signal and write that signal to the pipe. On the other end, the process will read the... (7 Replies)
Can anybody throw some light on how to save a portion of process stack in C (unix/linux) in order to restore them in future to resume execution from the point where it saved.
Thanks in advance (1 Reply)
Hi,
I would like o implement a kernel call, but I don't know how to do it. Where can I find an example?
I've already look to minix source code, but I'm still confused and not very comfortable to mess with the code at this level.
Thanks, (1 Reply)
Hello masters,
Can any one tell me what is siginitsetinv() function in kernel.
I have seen that function called in many codes. And that function is defined in linux/signal.h . But i couldnt understand a thing .Can anyone help me. (1 Reply)
Hi all,
i am porting a system, that used to manipulate memory across processes using an interrupt handler - which means that upon return from the interrupt handler the memory change would be finished. I am trying to simulate this using signals on Linux 2.6.2x.
What i would like to know is... (1 Reply)
Hi,
I have a problem with signal handler algorithm in linux. My code is hanging ( It is continuously looping inside the signal handler) . I am pasting my code here...
Please provide me some help regarding this. I googled many places and wrote this code.. but doesnt seem to be working without... (6 Replies)
Hi guys..
I m newbie to this forum. Basically, i need help in my final year B.E project. I will need some ideas or hints to decide my Project Topic on/for Linux. If you ask me why i choose Linux.. then i wud say I want to contribute more to open source community and eagerly want to learn... (2 Replies)
Well, my first post... thanks in advance! Can applications be notified of the X Window close (with "X" button) so the signal handler can run a cleanup process method?
About the app: built with GNU C/C++ on Solaris 10, with WxWidgets. It is launched by a shell script as a background task. The... (2 Replies)
I am not a newbie to Linux, i have been using Linux as my desktop for 4 years, but i am just an end user to Linux, no advanced knowledge to it.
I knew that, i can download generic linux kernel and compile it by myself, but how about Unix? how can i get an Unix kernel and compile it ? or no this... (5 Replies)
Hello everybody !
At the beginning - I hope everything will be understandable as I know that my english skills are not as good as I would like.
I use Manjaro Linux for one year, previously used Ubuntu for 6 years. Today I got an idea to create small USB electronic device but I don't know how... (6 Replies)