kill_all: change execl call to execlp

This commit is contained in:
William Hubbs 2018-02-24 17:02:02 -06:00
parent cfded513cd
commit f383fd87b1

View File

@ -65,7 +65,7 @@ static int mount_proc(void)
break;
case 0:
/* attempt to mount /proc */
execl("mount", "mount", "-t", "proc", "proc", "/proc", NULL);
execlp("mount", "mount", "-t", "proc", "proc", "/proc", NULL);
syslog(LOG_ERR, "Unable to execute mount");
exit(1);
break;