@twol - So to follow up, as expected running oscam using the changes you suggested did not fix MY problem
My situation
OSCAM
Running a mipsel only version on an ET8000, and an arm only version on a GigaBlue UE.
Both report to be oscam-1.20_svn-r11686.
Both reference libcrypto.so.0.9.8, so need a symbolic link to run.
PROBLEM
Noticed a number of weeks ago, that oscam would stop after a while on the mipsel box - could manually restart it straight away.
Lost a few recordings due to this so decided to look into it more.
Added the restart option '-r 2' to the command line.
Added a logfile option in 'oscam.conf' to point to a usb stick, and ran it in max debug mode '-d 65535' to see if it would log why it was stopping.
Neither option were any help.
Noticed in SoftCamManager the stack size was being set at 1024Kb (ulimit -s 1024), so decided to start it manually from the command prompt because both the stack size and open files values were not reduced (8192Kb and 16384).
Again, no change.
What I did discover was that the oscam process stopped after 300 minutes +/- a few.
The other discover was that the oscam process only stopped on the mipsel box - no issues on the arm box!
TESTING
To test consistently I would start a recording for 8hrs or so and check it after 300+ minutes to see if oscam process was still running.
IMAGES TESTED (in order)
Openvix 5.4.009, .010, .012 then back down to .007 as some posts said it still worked
Oscam stopped in all of the above after approx 300 minutes.
OpenATV 6.4 20210522
Worked perfectly with no stopping - tested over long weekend and was able to make a 12hr recording
Openvix 5.3.039
Worked perfectly with no stopping - tested over a week and was able to make an 18hr recording
openvix 5.4.003
Worked perfectly with no stopping - tested over a week and was able to make an 6hour recordings
openvix 5.4.005
Oscam stopped after approx 300 minutes each time.
openvix 5.4.004
Worked perfectly with no stopping - tested over a few days
So based on the above, it looks like the problem was possibly introduced between 5.4.004 and 005!
Unfortunately I have no answers or suggestions, can just document what I found testing.
For anyone who understands the build process, or understands what changed were made during this period - does anything jump out?
Maybe a change in the compile or link parameters, or maybe a new method of doing things was introduced into the code!
WW