signal: add define of SIGHUP/SIGTTIN

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-06-02 15:17:23 +08:00 committed by Xiang Xiao
parent 035d925864
commit 5f46a21c25
2 changed files with 32 additions and 0 deletions

View file

@ -214,6 +214,18 @@
# define SIGPIPE CONFIG_SIG_PIPE
#endif
#ifndef CONFIG_SIG_HUP
# define SIGHUP 14
#else
# define SIGHUP CONFIG_SIG_HUP
#endif
#ifndef CONFIG_SIG_TTIN
# define SIGTTIN 15
#else
# define SIGTTIN CONFIG_SIG_TTIN
#endif
/* The following are non-standard signal definitions */
#ifndef CONFIG_DISABLE_PTHREAD

View file

@ -1518,6 +1518,26 @@ config SIG_PIPE
This signal is generated when write on a pipe with no one to read it.
SIGPIPE may be ignored.
config SIG_HUP
int "SIGHUP"
default 14
---help---
The SIGHUP would be sent to programs when the serial line was dropped,
often because the connected user terminated the connection by hanging up
the modem. The system would detect the line was dropped via the lost
Data Carrier Detect (DCD) signal.
config SIG_TTIN
int "SIGTTIN"
default 15
---help---
A process cannot read from the users terminal while it is running as a
background job. When any process in a background job tries to read from
the terminal, all of the processes in the job are sent a SIGTTIN signal.
The default action for this signal is to stop the process. For more
information about how this interacts with the terminal driver, see Access
to the Controlling Terminal.
comment "Non-standard Signal Numbers"
config SIG_SIGCONDTIMEDOUT