Revert " Define SIGSTOP for architecture mips (#40299)" (#40470)
authorSantiago Fernandez Madero <safern@microsoft.com>
Thu, 6 Aug 2020 18:35:48 +0000 (11:35 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Aug 2020 18:35:48 +0000 (11:35 -0700)
This reverts commit 0f7370baa68c5809f93095cbce9bf614f44cc731.

src/libraries/Native/Unix/CMakeLists.txt
src/libraries/Native/Unix/System.Native/pal_process.c
src/libraries/Native/Unix/System.Native/pal_process.h

index a4f8970..3168c7e 100644 (file)
@@ -64,9 +64,6 @@ elseif (CLR_CMAKE_TARGET_ARCH_WASM)
 elseif (CLR_CMAKE_TARGET_ARCH_ARM64)
     add_definitions(-DTARGET_64BIT=1)
     add_definitions(-DTARGET_ARM64)
-elseif (CLR_CMAKE_TARGET_ARCH_MIPS64)
-    add_definitions(-DTARGET_64BIT=1)
-    add_definitions(-DTARGET_MIPS64)
 elseif (CLR_CMAKE_TARGET_ARCH_ARM)
     add_definitions(-DTARGET_32BIT=1)
     add_definitions(-DTARGET_ARM)
index a1559e8..6d86efe 100644 (file)
@@ -28,6 +28,8 @@
 #include <sched.h>
 #endif
 
+// Validate that our Signals enum values are correct for the platform
+c_static_assert(PAL_SIGKILL == SIGKILL);
 
 // Validate that our SysLogPriority values are correct for the platform
 c_static_assert(PAL_LOG_EMERG == LOG_EMERG);
@@ -651,22 +653,6 @@ int32_t SystemNative_SetRLimit(RLimitResources resourceType, const RLimit* limit
 
 int32_t SystemNative_Kill(int32_t pid, int32_t signal)
 {
-    switch (signal)
-    {
-        case PAL_SIGKILL:
-             signal = SIGKILL;
-             break;
-
-        case PAL_SIGSTOP:
-             signal = SIGSTOP;
-             break;
-
-        default:
-             assert_msg(false, "Unknown signal",signal);
-             errno = EINVAL;
-             return -1;
-    }
-
     return kill(pid, signal);
 }
 
index 6c79cef..92eaf66 100644 (file)
@@ -73,7 +73,6 @@ typedef enum
 typedef enum
 {
     PAL_SIGKILL = 9, /* kill the specified process */
-    PAL_SIGSTOP = 19,
 } Signals;
 
 /**