Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement PosixSignal API#54136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
stephentoub merged 65 commits intodotnet:mainfromtmds:posix_signal
Jul 8, 2021
Merged
Changes from1 commit
Commits
Show all changes
65 commits
Select commitHold shift + click to select a range
11a94bb
Implement PosixSignal API
tmdsJun 9, 2021
ae4d67e
PosixSignalRegistration: implement finalizer
tmdsJun 14, 2021
72a2475
Support using positive PosixSignal values as raw signal numbers
tmdsJun 14, 2021
17045d8
Reduce nr of TargetFrameworks
tmdsJun 14, 2021
61a0fba
#ifdef SIGRTMAX
tmdsJun 14, 2021
b5ae07a
Don't throw Win32Exception (for now)
tmdsJun 14, 2021
52e1f17
Rename PosixSignalRegistration.cs to PosixSignalRegistration.Unsuppor…
tmdsJun 16, 2021
26f22b3
Spawn new Thread only for specific signals
tmdsJun 16, 2021
0bd03f9
Add PosixSignal.SIGCONT, SIGWINCH, SIGTTIN, SIGTTOU, SIGTSTP
tmdsJun 17, 2021
e8d01c8
SystemNative_DefaultSignalHandler: remove SuppressGCTransition attribute
tmdsJun 17, 2021
6cc2d89
Update comment in SystemNative_InitializeTerminalAndSignalHandling
tmdsJun 17, 2021
5892f0d
Run original handler except for cancelable signals.
tmdsJun 17, 2021
f337677
Cleanup ControlCHandlerRegistrar
tmdsJun 17, 2021
c3dce04
Handle TryGetTarget returning false due to finalized PosixSignalRegis…
tmdsJun 17, 2021
db75bba
Use Thread.UnsafeStart
tmdsJun 17, 2021
96ded59
Remove SuppressGCTransition from methods that take a lock
tmdsJun 17, 2021
55f1abe
Support canceling terminal configuration on SIGCHLD/SIGCONT
tmdsJun 18, 2021
7a2594c
Throw for errno using Interop.CheckIO
tmdsJun 18, 2021
9c27d6e
Rename DefaultSignalHandler to HandleNonCanceledPosixSignal
tmdsJun 18, 2021
b5ed74d
Register Console SIGTTOU with SA_RESETHAND
tmdsJun 21, 2021
76b8704
Allocate storage for tracking signals dynamically
tmdsJun 21, 2021
5f5deb3
Propagate sigaction errors when enabling PosixSignal
tmdsJun 21, 2021
03c03b8
Add some tests
tmdsJun 21, 2021
6f0c69b
Fix entrypoints
tmdsJun 21, 2021
d873120
Fix compilation
tmdsJun 21, 2021
bc1590c
Add some more tests
tmdsJun 21, 2021
e8827ce
Move tests to PosixSignalRegistrationTests.Unix file
tmdsJun 21, 2021
511f604
Add SignalCanCancelTermination test
tmdsJun 21, 2021
1d15e42
ConfigureTerminalForChildProcesses: split Unix and iOS
tmdsJun 21, 2021
a760612
Fix iOS compilation failure
tmdsJun 21, 2021
dddc5bc
Skip signals that cause xunit to exit with non zero
tmdsJun 21, 2021
d4c8e24
Try fix Android compilation
tmdsJun 21, 2021
12150ab
Remove SIGSTOP from UninstallableSignalsThrow because it doesn't thro…
tmdsJun 22, 2021
469b6fe
Cleanup
tmdsJun 22, 2021
38a4d76
Handle case where all handlers got disposed by the time we want to ca…
tmdsJun 22, 2021
8841d41
GenerateReferenceAssemblySource
tmdsJun 22, 2021
c2ef9eb
Replace PosixSignalRegistration.Unsupported with .Windows/.Browser file
tmdsJun 22, 2021
575dd7d
Remove assert(g_hasTty) from UninitializeTerminal
tmdsJun 23, 2021
3756ac2
Initialize signal handling when ifndef HAS_CONSOLE_SIGNALS
tmdsJun 23, 2021
778350f
Fix broken Cancel
tmdsJun 23, 2021
ed39929
Use SIGRTMAX as highest usable signal number.
tmdsJun 23, 2021
3c02835
SIGRTMAX is not defined on all platforms, fall back to NSIG
tmdsJun 23, 2021
8ccfd3e
Resend signal only when restored to SIG_DFL
tmdsJun 23, 2021
481f40e
SignalCanCancelTermination test: increase timeout
tmdsJun 23, 2021
669e09f
Increase timeout to 10min
tmdsJun 23, 2021
2cb8cda
Update expected SIGQUIT exit code for mono
tmdsJun 24, 2021
459f3e6
Change isMono check
tmdsJun 24, 2021
834350f
Use PlatformDetection.IsMonoRuntime
tmdsJun 29, 2021
c8cb449
Add IsSignalThatTerminates method
tmdsJun 29, 2021
cba68f3
Add some documentation xml
tmdsJun 29, 2021
19d30d6
Console.ManualTests: test terminal echo during and after child proces…
tmdsJun 29, 2021
e4cef47
Maintain flags and mask of original handler
tmdsJun 30, 2021
aa549a3
PR feedback
tmdsJun 30, 2021
324db13
SystemNative_HandleNonCanceledPosixSignal: update handling based on d…
tmdsJun 30, 2021
8e830fe
Apply suggestions from code review
tmdsJul 1, 2021
85439d6
Don't call sa_sigaction/sa_handler twice from SystemNative_HandleNonC…
tmdsJul 1, 2021
b8a0b5d
Don't remove WeakReferences while iterating.
tmdsJul 1, 2021
18b7139
Move static fields to the top of the class
tmdsJul 1, 2021
d136c5b
Remove -Wcast-qual ignore
tmdsJul 1, 2021
be93c17
PosixSignalContext: add XML docs
tmdsJul 1, 2021
4de318a
Fix Android compilation
tmdsJul 1, 2021
6898402
Fix Android compilation, take II
tmdsJul 1, 2021
b8234bd
Fix comment
tmdsJul 7, 2021
f1aee19
Add PosixSignalContext constructor test
tmdsJul 7, 2021
005cddd
SystemNative_HandleNonCanceledPosixSignal: add SIG_IGN case
tmdsJul 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
PosixSignalContext: add XML docs
  • Loading branch information
@tmds
tmds committedJul 1, 2021
commitbe93c17cb7dd380e11b56393893a7cb6ae1c3033
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,28 +3,37 @@

namespace System.Runtime.InteropServices
{
/// <summary>
/// Provides data for a <see cref="PosixSignalRegistration"/> event.
/// </summary>
public sealed class PosixSignalContext
{
/// <summary>
/// Initializes a new instance of the <see cref="PosixSignalContext"/> class.
/// </summary>
public PosixSignalContext(PosixSignal signal)
{
Signal = signal;
}

/// <summary>
/// Gets the signal that occurred.
/// </summary>
public PosixSignal Signal
{
get;
internal set;
}

/// <summary>
///Cancelsdefault handling of the signal.
///Gets or sets a value that indicates whether to cancel thedefault handling of the signal. The default is is <see langword="false"/>.
/// </summary>
public bool Cancel
{
get;
set;
}

public PosixSignalContext(PosixSignal signal)
{
Signal = signal;
}

internal PosixSignalContext()
{ }
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp