Skip to content

Commit

Permalink
Added sigtimedwait as alias for sigwaitinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Leont committed Apr 23, 2012
1 parent cb9cb83 commit bb4c1af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/POSIX/RT/Signal.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Queue a signal $sig to process $pid, optionally with the additional argument $va
Wait for a signal in $signals to arrive and return information on it. The signal handler (if any) will not be called. Unlike signal handlers it is not affected by signal masks, in fact you are expected to mask signals you're waiting for. C<$signals> must either be a POSIX::SigSet object, a signal number or a signal name. If C<$timeout> is specified, it indicates the maximal time the thread is suspended in fractional seconds; if no signal is received it returns an empty list, or in void context an exception. If $timeout is not defined it may wait indefinitely until a signal arrives. On success it returns a hash with the following entries:
C<sigtimedwait> is an alias for this function.
=over 4
=item * signo
Expand Down
2 changes: 2 additions & 0 deletions lib/POSIX/RT/Signal.xs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ SV*
sigwaitinfo(set, timeout = undef)
SV* set;
SV* timeout;
ALIAS:
sigtimedwait = 0
PREINIT:
int val;
siginfo_t info;
Expand Down

0 comments on commit bb4c1af

Please sign in to comment.