minor modif
This commit is contained in:
parent
ec9ee77e92
commit
bd11d8e752
4
main.c
4
main.c
@ -226,12 +226,9 @@ int isinarray( int pid, int array[], int n )
|
||||
for(x=1;x<=n;x++)
|
||||
{
|
||||
if( pid == array[x])
|
||||
{
|
||||
if (loglevel >= DEBUG )
|
||||
{
|
||||
sprintf(strlog, "pid %i is in array", pid);
|
||||
printlog(strlog, DEBUG, 0 );
|
||||
}
|
||||
return x;
|
||||
}
|
||||
}
|
||||
@ -563,6 +560,7 @@ int main()
|
||||
while (1)
|
||||
{
|
||||
memset(&conn, 0, sizeof(conn));
|
||||
ip[0] = '\0';
|
||||
// get the sshd process ID (PID)
|
||||
if ( (fh = fopen("/run/sshd.pid", "r" )) == NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user