08-05-2009
With signal1 and signal2 did you mean the various instances of the signal of type <T>? If so, I don't understand the point of stopping the instructions that the first instance of the signal was processing and then to continue with the second instance of the same signal of type <T>.
If there are 'n' instructions to be processed when a signal is delivered and 'm' ( m <=n ) has been already processed, why the current set of remaining instructions should not be processed and the whole set of 'n' instructions to be processed afresh?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
this is my script to make a choice between 4 :
clear
echo " choose a profile and enter a number"
echo
echo " 1- oraSTT "
echo
echo " 2- appSTT "
echo... (3 Replies)
Discussion started by: big123456
3 Replies
2. Solaris
Hi all,
make_lofs /.cdrom/<something>/<something> 1
what does this instruction mean?
Note:both the "something" are obviously different .
I would like to know what that 1 means, the rest of the instruction is clear!!
Thanks (6 Replies)
Discussion started by: wrapster
6 Replies
3. Shell Programming and Scripting
Hi,
I'd get fields like
unix_linux_form_yyyyddmmhhmi.file.txt
shell_programming_and_scripting.txt
so on...
and want them as below
unix_linux_form
shell_programming_and
I could remove everything after a '.' as below
echo $field | sed 's/\..*//'
but how to remove... (14 Replies)
Discussion started by: dips_ag
14 Replies
4. Shell Programming and Scripting
Dear shell experts,
I spent last few days porting ksh script from ksh88/SunOS to ksh93/Linux.
Basically, things are going well and I do not have too much troubles porting ks88 script to ksh93, but I stuck on one item. It's about sending and handling the signal.
I found two similar... (8 Replies)
Discussion started by: bzk
8 Replies
5. Shell Programming and Scripting
Hi all,
I'd like to search a file for the first occurence of the phrase "PLASTICS THAT EXPIRE" and then discard all the lines that came before it. Output the remainder to a new file. Operating system is hp-ux. I've searched for usual awk and sed one liners but can't find a solution.
Thank... (4 Replies)
Discussion started by: Scottie1954
4 Replies
6. Shell Programming and Scripting
I want to remove commands having no output. In below text file.
bash-3.2$ cat abc_do_it.txt
grpg10so>show trunk group all status
grpg11so>show trunk group all status
grpg12so>show trunk group all status
GCPKNYAIGT73IMO 1440 1345 0 0 94 0 0 INSERVICE 93% 0%... (4 Replies)
Discussion started by: Raza Ali
4 Replies
7. Shell Programming and Scripting
Pleas I want answer to this question? Pleas help me
A system administrator suspects that there is an attack on his machine; he needs to make a backup of the files to check when they have been modified. For this purpose he uses the "cp -r" instruction to copy the root directory. What is the... (1 Reply)
Discussion started by: tamer11007
1 Replies
8. Shell Programming and Scripting
Hi,
I'd like to do an operation on text with a format like this
this line shall be numbered
this line shall not be numbered
this line shall also be numbered
this line shall not not be numbered
And I want an output like this
1 this line shall be numbered
this line... (6 Replies)
Discussion started by: jeppe83
6 Replies
9. Shell Programming and Scripting
I have the file:
s3_T0(2) Pos "1" "2"
s1_T1(2) Pos "1" "2"
---
0 0
1 0
0 1
1 1
---
1 2 "tau0"
1 2 "h10"
I want to patternmatch on ---
and get only the third part i.e.
1 2 "tau0"
1 2 "h10"
I wanted to start simple but even something like (5 Replies)
Discussion started by: eagle_fly
5 Replies
10. UNIX for Dummies Questions & Answers
Hi guys !
I generated the power set of the set S={a,b,c} using crunch:
crunch 1 3 abc
and get the 39 possible subsets:
a
b
c
aa
ab
ac
ba
bb
bc
ca
cb
cc
… (2 Replies)
Discussion started by: beca123456
2 Replies
LEARN ABOUT HPUX
sigpause
sigpause(3C) sigpause(3C)
NAME
sigpause - signal management
SYNOPSIS
Obsolescent
DESCRIPTION
The function, along with the and functions provide simplified signal management.
The function removes sig from the calling thread's signal mask and suspends the calling thread until a signal is received. The function
restores the thread's signal mask to its original state before returning.
RETURN VALUE
The function suspends execution of the thread until a signal is received, whereupon it shall return and set to
ERRORS
[EINVAL] sig is not a valid signal number.
WARNINGS
The compiler option must be set to use sigpause(). The use of the function without the option is unspecified.
should not be used in conjunction with signal(2) and sigspace(2).
OBSOLESCENT FUNCTION
will be obsoleted in the near future. The obsolescent function blocks signals according to the value of mask, then atomically waits for an
unmasked signal to arrive. On return, restores the current signal mask to the value that existed before the call. When no signals are to
be blocked, a value of is used for mask.
terminates when it is interrupted by a signal. When terminates, it returns -l and sets to
The obsolescent function is typically used in conjunction with the obsoleted function.
Threads Considerations
Since blocked signal masks are maintained at the thread level, the obsolescent function modifies only the calling thread's blocked signal
mask. suspends only the calling thread until it receives a signal.
If other threads in the process do not block the signal, the signal may be delivered to another thread in the process and the thread in may
continue waiting. For this reason, the use of sigwait(2) is recommended instead of for multi-threaded applications.
For more information regarding signals and threads, refer to signal(5).
LP64 Programs
This obsolescent accepts a long (64 bit) value. However, as for ILP32 programs, supports signals numbered 1 through 32. The upper 32 bits
of the mask argument are ignored.
Author
was developed by the University of California, Berkeley.
SEE ALSO
kill(1), kill(2), pause(2), signal(2), wait(2), abort(3C), setjmp(3C), sighold(3C), sigignore(3C), sigrelse(3C), sigset(3C), signal(5).
STANDARDS CONFORMANCE
sigpause(3C)