I have tested removal of the get_thread_id MACH IFDEF. It is indeed
strictly unnecessary since even without it the threads are still
uniquely identified. I propose however that it is kept and modified as
per the compiler warning, since the raw IDs use four extra bytes which
could better be used by the remainder of the log line, plus the comment
in the code is strictly true.
Let me know if anyone disagrees.
Here are log snippets before and after the IFDEF removal:
2016-01-19 23:11:43.935 000003c8 Info: Privoxy version 3.0.24
2016-01-19 23:11:43.936 000003c8 Info: Program name: /usr/local/sbin/privoxy
2016-01-19 23:11:43.944 000003c8 Info: Loading filter file:
/usr/local/etc/privoxy/default.filter
2016-01-19 23:11:43.956 000003c8 Info: Loading filter file:
/usr/local/etc/privoxy/user.filter
2016-01-19 23:11:43.957 000003c8 Info: Loading actions file:
/usr/local/etc/privoxy/match-all.action
2016-01-19 23:11:43.958 000003c8 Info: Loading actions file:
/usr/local/etc/privoxy/default.action
2016-01-19 23:11:43.971 000003c8 Info: Loading actions file:
/usr/local/etc/privoxy/user.action
2016-01-19 23:11:43.983 000003c8 Info: Loading actions file:
/usr/local/etc/privoxy/regression-tests.action
2016-01-19 23:11:43.997 000003c8 Error: block action without reason
found. This may become a fatal error in future versions.
2016-01-19 23:11:44.000 000003c8 Info: Listening on port 8118 on IP
address 127.0.0.1
2016-01-19 23:11:46.782 00000128 Request: api.simperium.com:443/
2016-01-19 23:11:47.027 00000368 Request: api.simperium.com:443/
2016-01-19 23:11:47.792 000001c0 Request: notify3.dropbox.com:443/
2016-01-19 23:12:05.013 00000018 Request: client-cf.dropbox.com:443/
2016-01-19 23:12:19.040 00000258 Request: www.google.com:443/
2016-01-20 09:35:34.135 7fff78fb5000 Info: Privoxy version 3.0.24
2016-01-20 09:35:34.135 7fff78fb5000 Info: Program name:
/usr/local/sbin/privoxy
2016-01-20 09:35:34.141 7fff78fb5000 Info: Loading filter file:
/usr/local/etc/privoxy/default.filter
2016-01-20 09:35:34.181 7fff78fb5000 Info: Loading filter file:
/usr/local/etc/privoxy/user.filter
2016-01-20 09:35:34.182 7fff78fb5000 Info: Loading actions file:
/usr/local/etc/privoxy/match-all.action
2016-01-20 09:35:34.183 7fff78fb5000 Info: Loading actions file:
/usr/local/etc/privoxy/default.action
2016-01-20 09:35:34.209 7fff78fb5000 Info: Loading actions file:
/usr/local/etc/privoxy/user.action
2016-01-20 09:35:34.218 7fff78fb5000 Info: Loading actions file:
/usr/local/etc/privoxy/regression-tests.action
2016-01-20 09:35:34.232 7fff78fb5000 Error: block action without reason
found. This may become a fatal error in future versions.
2016-01-20 09:35:34.235 7fff78fb5000 Info: Listening on port 8118 on IP
address 127.0.0.1
2016-01-20 09:35:35.603 700000081000 Request: api.simperium.com:443/
2016-01-20 09:35:35.857 700000104000 Request: api.simperium.com:443/
2016-01-20 09:35:39.626 700000187000 Request: notify3.dropbox.com:443/
2016-01-20 09:36:16.022 70000020a000 Request: www.google.com:443/
Ian
Post by Ian SilvesterPost by Fabian KeilPost by Ian SilvesterI've fixed my build environment so an OS X release is back on schedule.
Great.
I spoke slightly too soon.
Whilst I have a working binary it seems that the version I have of
Apple's own package building tool no longer runs on my system. Apple's
monolithic approach to dev tool distribution means I cannot upgrade it
without risking the loss of down-level target SDKs. I am therefore
evaluating a free alternative and have high hopes of transitioning to it.
At this rate I'll be a few days behind the curve, but I don't see a
problem with that.
Post by Fabian KeilPost by Ian SilvesterOne item of note is that Apple has replaced gcc with LLVM/clang, which
errlog.c:429:18: warning: absolute value function 'abs' given an
argument of type 'long' but has parameter of type 'int' which may
cause truncation of value [-Wabsolute-value]
this_thread = abs(this_thread % 1000);
^
errlog.c:429:18: note: use function 'labs' instead
this_thread = abs(this_thread % 1000);
^~~
labs
Clearly the sizes of long and int are platform dependent, but I don't
know if the code change it is suggesting is viable.
Given that the code is in an "#ifdef __MACH__" block
I didn't look into the source file, assuming it was a different level
of strictness from LLVM; clearly I should have done!
Post by Fabian KeilI have
no strong opinions on how to deal with the warning and if
it should happen before the release.
While using labs() seems viable, it's not obvious to me that the
whole line is (still) useful. If it isn't, removing it may be an
even better idea.
Could you try that and check how the thread ids in the log messages change?
Okay, will do.
Ian
Post by Fabian KeilFabian
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Ijbswa-developers mailing list
https://lists.sourceforge.net/lists/listinfo/ijbswa-developers
--
My PGP public key
<http://diem.serveftp.net:8080/IanSilvesterPGPPublicKey.asc>.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Ijbswa-developers mailing list
https://lists.sourceforge.net/lists/listinfo/ijbswa-developers
--
My PGP public key
<http://diem.serveftp.net:8080/IanSilvesterPGPPublicKey.asc>.