Skip to content

Commit

Permalink
Avoid floating point exception when atopacctd fails (solves issue #277)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atoptool committed Oct 6, 2023
1 parent f5ed1bc commit f72f7c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acctproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ atopacctd(int swon)
{
if ( swon && !acctvers(acctfd) )
{

int maxcnt = 40;

if ( fork() == 0 )
Expand All @@ -453,7 +452,8 @@ atopacctd(int swon)
&semunlock, 1);

regainrootprivs();
return 1;
maxshadowrec = 0;
return -1; // try other
}
}

Expand Down

0 comments on commit f72f7c0

Please sign in to comment.