From 8367f885ea97921000bbb3c485d0fe57993c0775 Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Fri, 19 Jun 2020 23:55:51 +0800 Subject: [PATCH] [simulation] remove linux specific prctl (#5126) These code is not used since we remove OPENTHREAD_TARGET_DEFINES in examples/ in 2016. --- examples/platforms/simulation/uart.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/examples/platforms/simulation/uart.c b/examples/platforms/simulation/uart.c index ab8262646..777bbedd1 100644 --- a/examples/platforms/simulation/uart.c +++ b/examples/platforms/simulation/uart.c @@ -44,13 +44,6 @@ #include "utils/code_utils.h" #if OPENTHREAD_SIMULATION_VIRTUAL_TIME_UART == 0 -#ifdef __linux__ -#include -int posix_openpt(int oflag); -int grantpt(int fildes); -int unlockpt(int fd); -char *ptsname(int fd); -#endif // __linux__ static uint8_t s_receive_buffer[128]; static const uint8_t *s_write_buffer; @@ -83,12 +76,6 @@ otError otPlatUartEnable(void) otError error = OT_ERROR_NONE; struct termios termios; -#ifdef __linux__ - // Ensure we terminate this process if the - // parent process dies. - prctl(PR_SET_PDEATHSIG, SIGHUP); -#endif - s_in_fd = dup(STDIN_FILENO); s_out_fd = dup(STDOUT_FILENO); dup2(STDERR_FILENO, STDOUT_FILENO);