Hello all,
I'm hoping to get a little insight from some of the wily veterans amongst you.
I've written a script to check for new outgoing files to our vendors located on our ssl server. It seems to be working ok, but the final question here, will be one of logic, and/or a better way to... (4 Replies)
I am using informix RDBMS over SUSE LINUX. In linux if you press control-c it acts as an interrupt key. In my program I have used control-c to perform certain functions but it is being overriden by interrupt function of control-c key combination of SUSE LINUX. Kindly suggest me a solution by which... (1 Reply)
How can I trap a character press in the shell script.
For eg:- I have a script runinng a infinite loops , I will need to quit if q is pressed.
I have seen the traping the signal , but they give option only for traping the defined interrupt signals. But those does not help me here. (3 Replies)
Hi folks,
I have tried to add some trap detection in the below script....this script is used to monitor database activities...in a rather awkward way :rolleyes:....
The idea behind adding trap is that....this script creates lots of temporary files in the running folder to store the count... (1 Reply)
Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks.
... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
That is the last reply I received from my instructor, and I'm looking for some alternatives.
When using... (2 Replies)
Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
... (4 Replies)
Discussion started by: Rajeev_hbk
4 Replies
LEARN ABOUT DEBIAN
sigwait
SIGWAIT(2) BSD System Calls Manual SIGWAIT(2)NAME
sigwait -- select a set of signals
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
sigwait(const sigset_t * restrict set, int * restrict sig);
DESCRIPTION
The sigwait() system call selects a set of signals, specified by set. If none of the selected signals are pending, sigwait() waits until one
or more of the selected signals has been generated. Then sigwait() atomically clears one of the selected signals from the set of pending
signals for the process and sets the location pointed to by sig to the signal number that was cleared.
The signals specified by set should be blocked at the time of the call to sigwait().
If more than one thread is using sigwait() to wait for the same signal, no more than one of these threads will return from sigwait() with the
signal number. If more than a single thread is blocked in sigwait() for a signal when that signal is generated for the process, it is
unspecified which of the waiting threads returns from sigwait(). If the signal is generated for a specific thread, as by pthread_kill(),
only that thread will return.
Should any of the multiple pending signals in the range SIGRTMIN to SIGRTMAX be selected, it will be the lowest numbered one. The selection
order between realtime and non-realtime signals, or between multiple pending non-realtime signals, is unspecified.
RETURN VALUES
If successful, sigwait() returns 0 and sets the location pointed to by sig to the cleared signal number. Otherwise, an error number is
returned.
ERRORS
The sigwait() system call will fail if:
[EINVAL] The set argument specifies one or more invalid signal numbers.
[EFAULT] Any arguments point outside the allocated address space or there is a memory protection fault.
SEE ALSO sigaction(2), sigpending(2), sigqueue(2), sigsuspend(2), sigtimedwait(2), sigwaitinfo(2), pause(3), pthread_sigmask(3)STANDARDS
The sigwait() function conforms to ISO/IEC 9945-1:1996 (``POSIX.1'').
BSD November 11, 2005 BSD