Skip to content
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,21 @@ public void SignalHandler_CanDisposeInHandler(PosixSignal signal)
AssertRemoteProcessStandardOutputLine(remoteHandle, PosixSignalHandlerStartedMessage, WaitInMS);
AssertRemoteProcessStandardOutputLine(remoteHandle, PosixSignalHandlerDisposedMessage, WaitInMS);

SendSignal(signal, remoteHandle.Process.Id);

// https://github.com/dotnet/runtime/issues/125733
Comment thread
mrek-msft marked this conversation as resolved.
// Mono prints running threads stack trace listings and does not quit on receiving SIGQUIT
if (PlatformDetection.IsMonoRuntime && signal == PosixSignal.SIGQUIT && !PlatformDetection.IsWindows)
Comment thread
mrek-msft marked this conversation as resolved.
{
// Terminate process using SIGTERM instead.
SendSignal(PosixSignal.SIGTERM, remoteHandle.Process.Id);
}
else
{
SendSignal(signal, remoteHandle.Process.Id);
}

Assert.True(remoteHandle.Process.WaitForExit(WaitInMS));
Assert.True(remoteHandle.Process.StandardOutput.EndOfStream);

if (OperatingSystem.IsWindows())
{
Assert.Equal(unchecked((int)0xC000013A), remoteHandle.Process.ExitCode); // STATUS_CONTROL_C_EXIT
Expand Down
Loading