centos 6
obsolete weakness #4


Weakness Breakdown


An obsolete weakness occurs when someone uses deprecated or obsolete functions when building a system. As a programming language evolves, some functions occasionally become obsolete.

Warning code(s):

These functions are considered obsolete on most systems, and very non-portable.

File Name:



The highlighted line of code below is the trigger point of this particular Centos 6 obsolete weakness.

 #include <signal.h>
#include <unistd.h>

#ifndef IS_IN_rtld
# include <bits/libc-lock.h>

# ifndef SHARED
weak_extern (__pthread_raise)
# endif

/* Raise the signal SIG.  */
raise (sig)
     int sig;
#ifdef IS_IN_rtld
  return __kill (__getpid (), sig);
  return __libc_maybe_call2 (pthread_raise, (sig),
			     __kill (__getpid (), sig));
libc_hidden_def (raise)
weak_alias (raise, gsignal) 

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.