libposix: simplify kill

This commit is contained in:
Giacomo Tesio 2017-04-30 16:49:01 +02:00
parent d0b9ae9cac
commit 3707eaece6
1 changed files with 0 additions and 5 deletions

View File

@ -115,11 +115,6 @@ POSIX_kill(int *errnop, int pid, int sig)
int mode;
int ret;
if(access("/proc", AEXEC) != 0){
*errnop = __libposix_get_errno(PosixEPERM);
return -1;
}
snprint(msg, sizeof(msg), __POSIX_SIGNAL_PREFIX "%d", sig);
switch(pid){
case 0: