| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final SignalHandler | IGNORE
This is used instead of SignalHandler.SIG_IGN as |
| private final Map | original
Remembers the original signal handlers before JRuby started messing around with them,
to emulate |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static IRubyObject | |
| public IRubyObject | ignore(ThreadContext context, IRubyObject recv, IRubyObject sig)
Implements org. Ignores this signal. |
| public IRubyObject | restoreOSDefault(ThreadContext context, IRubyObject recv, IRubyObject sig)
Implements org. Restores the OS default signal handler. |
| public IRubyObject | restorePlatformDefault(ThreadContext context, IRubyObject recv, IRubyObject sig)
Implements org. Restores the platform (JVM's) default signal handler. |
| public IRubyObject | trap(ThreadContext context, final IRubyObject recv, IRubyObject blk, IRubyObject sig)
Implements org.
|
| public IRubyObject | trap(ThreadContext context, BlockCallback blk, String sig)
Implements org.
|
| private IRubyObject | |
| private IRubyObject |
| fakeOriginal | back to summary |
|---|---|
| private final Map<String, SignalHandler> fakeOriginal | |
| IGNORE | back to summary |
|---|---|
| private static final SignalHandler IGNORE This is used instead of SignalHandler.SIG_IGN as | |
| original | back to summary |
|---|---|
| private final Map<Signal, SignalHandler> original Remembers the original signal handlers before JRuby started messing around with them,
to emulate | |
| SunSignalFacade | back to summary |
|---|---|
| public SunSignalFacade() | |
| getSignalResult | back to summary |
|---|---|
| private static IRubyObject getSignalResult(ThreadContext context, final SignalHandler oldHandler, boolean handled) | |
| ignore | back to summary |
|---|---|
| public IRubyObject ignore(ThreadContext context, IRubyObject recv, IRubyObject sig) Implements org. Doc from org. Ignores this signal. | |
| restoreOSDefault | back to summary |
|---|---|
| public IRubyObject restoreOSDefault(ThreadContext context, IRubyObject recv, IRubyObject sig) Implements org. Doc from org. Restores the OS default signal handler. | |
| restorePlatformDefault | back to summary |
|---|---|
| public IRubyObject restorePlatformDefault(ThreadContext context, IRubyObject recv, IRubyObject sig) Implements org. Doc from org. Restores the platform (JVM's) default signal handler. | |
| trap | back to summary |
|---|---|
| public IRubyObject trap(ThreadContext context, final IRubyObject recv, IRubyObject blk, IRubyObject sig) Implements org. | |
| trap | back to summary |
|---|---|
| public IRubyObject trap(ThreadContext context, BlockCallback blk, String sig) Implements org. | |
| trap | back to summary |
|---|---|
| private IRubyObject trap(ThreadContext context, final SunSignalFacade. | |
| trap | back to summary |
|---|---|
| private IRubyObject trap(ThreadContext context, final String signalName, final SignalHandler handler) | |
| Modifier and Type | Field and Description |
|---|---|
| private final IRubyObject | |
| private final BlockCallback | |
| private final Ruby | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | handle(Signal
a signal object signal)Implements sun. Handle the given signal |
| block | back to summary |
|---|---|
| private final IRubyObject block | |
| blockCallback | back to summary |
|---|---|
| private final BlockCallback blockCallback | |
| runtime | back to summary |
|---|---|
| private final Ruby runtime | |
| signal | back to summary |
|---|---|
| private final String signal | |
| JRubySignalHandler | back to summary |
|---|---|
| public JRubySignalHandler(Ruby runtime, IRubyObject block, String signal) | |
| JRubySignalHandler | back to summary |
|---|---|
| public JRubySignalHandler(Ruby runtime, BlockCallback callback, String signal) | |
| JRubySignalHandler | back to summary |
|---|---|
| private JRubySignalHandler(Ruby runtime, IRubyObject block, BlockCallback callback, String signal) | |
| handle | back to summary |
|---|---|
| public void handle(Signal signal) Implements sun. Doc from sun. Handle the given signal
| |