02-12-2011
Thank you for the reply!
But if so, then I've another question: does it make sense to block a signal, if the arrival of this signal aborts the system call anyway?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What does the system call "dup" do?
What is the difference between dup and dup2
I have a fair idea of what it does but I am confused when its coming down to the exact details...
Please help me!:confused: (2 Replies)
Discussion started by: clickonline1
2 Replies
2. UNIX for Dummies Questions & Answers
Which system calls are made for operations cp and mv (2 Replies)
Discussion started by: gaurava99
2 Replies
3. UNIX for Dummies Questions & Answers
open, creat, read, write, lseek and close
Are they all primitive?
:confused:
*Another Question: is there a different between a system call, and an i/o system call? (2 Replies)
Discussion started by: PlunderBunny
2 Replies
4. Solaris
where can i find the differences in System calls between solaris and aix?
also is it possible to find a comprehensive list of them? (1 Reply)
Discussion started by: TECHRAMESH
1 Replies
5. IP Networking
Is there any facility to filter/identify the data calls and voice calls coming throug modem?
OR
Can we get the data or voice calls information through a script(preferably C Kermit)? (0 Replies)
Discussion started by: pcsaji
0 Replies
6. UNIX Desktop Questions & Answers
Hi,
I'm new to UNIX system calls. Can someone share your knowledge as to how exactly system calls should be executed?
Can they be typed like commands such as mkdir on the terminal itself? Also, are there any websites which will show me an example of the output to expect when a system call like... (1 Reply)
Discussion started by: ilavenil
1 Replies
7. BSD
what is the functions and relationship between fork,exec,wait system calls
as i am a beginer just want the fundamentals. (1 Reply)
Discussion started by: sangramdas
1 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I am new here .
I want to know about system call in detail.
As system calls are also function .How system identifies it.:) (2 Replies)
Discussion started by: vishwasrao
2 Replies
9. UNIX for Dummies Questions & Answers
I know how to add signal to a set. But what if I want to add 2 or 3 signals to the set.
I know I can use sigaddset (&set,SIGBUS)....but what if I want to add SIGBUS and SIGALRM at once. Do i have to do it like this..
sigaddset (&set,SIGBUS);
sigaddset (&set,SIGALRM);
Is there another way to... (0 Replies)
Discussion started by: joker40
0 Replies
10. UNIX for Advanced & Expert Users
What will happen if signal comes while a system call is being executed?
How it will be handled? (1 Reply)
Discussion started by: rupeshkp728
1 Replies
LEARN ABOUT REDHAT
siginterrupt
SIGINTERRUPT(3) Linux Programmer's Manual SIGINTERRUPT(3)
NAME
siginterrupt - allow signals to interrupt system calls
SYNOPSIS
#include <signal.h>
int siginterrupt(int sig, int flag);
DESCRIPTION
The siginterrupt() function changes the restart behaviour when a system call is interrupted by the signal sig. If the flag argument is
false (0), then system calls will be restarted if interrupted by the specified signal sig. This is the default behaviour in Linux. How-
ever, when a new signal handler is specified with the signal(2) function, the system call is interrupted by default.
If the flags argument is true (1) and no data has been transferred, then a system call interrupted by the signal sig will return -1 and the
global variable errno will be set to EINTR.
If the flags argument is true (1) and data transfer has started, then the system call will be interrupted and will return the actual amount
of data transferred.
RETURN VALUE
The siginterrupt() function returns 0 on success, or -1 if the signal number sig is invalid.
ERRORS
EINVAL The specified signal number is invalid.
CONFORMING TO
BSD 4.3
SEE ALSO
signal(2)
1993-04-13 SIGINTERRUPT(3)