Replace usage of SIGKILL with SIGINIT

This commit is contained in:
Gregory Nutt 2018-08-28 12:02:06 -06:00
parent 1ee6fbf296
commit bb4c5c49ef
3 changed files with 4 additions and 18 deletions

View File

@ -135,9 +135,9 @@ int nsh_builtin(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
{
int rc = 0;
/* Setup up to receive SIGKILL if control-C entered. The return
/* Setup up to receive SIGINT if control-C entered. The return
* value is ignored because this console device may not support
* SIGKILL.
* SIGINT.
*/
(void)ioctl(stdout->fs_fd, TIOCSCTTY, ret);

View File

@ -172,9 +172,9 @@ int nsh_fileapp(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
{
int rc = 0;
/* Setup up to receive SIGKILL if control-C entered. The return
/* Setup up to receive SIGINT if control-C entered. The return
* value is ignored because this console device may not support
* SIGKILL.
* SIGINT.
*/
(void)ioctl(stdout->fs_fd, TIOCSCTTY, pid);

View File

@ -61,18 +61,6 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef SIGINT
# define SIGINT 2
#endif
#ifndef SIGKILL
# define SIGKILL 9
#endif
#ifndef SIGTERM
# define SIGTERM 15
#endif
enum parity_mode
{
PARITY_NONE,
@ -297,8 +285,6 @@ int cu_main(int argc, FAR char *argv[])
memset(&sa, 0, sizeof(sa));
sa.sa_handler = sigint;
sigaction(SIGINT, &sa, NULL);
sigaction(SIGTERM, &sa, NULL);
sigaction(SIGKILL, &sa, NULL);
while ((option = getopt(argc, argv, "l:s:eor?")) != ERROR)
{