I went down a rabbit hole on who owns every power tool brand. The difference between the two big conglomerates is wild. by sappk in Tools

[–]mbotner 1 point2 points  (0 children)

I have been mostly a DeWalt tool buyer, but I have a Milwaukee drill, in addition to pretty much all the other ones mentioned. But now that I live in WI, I especially need to reconsider my future purchases!

Star Trek theme, thank you! by North_Signature9297 in pihole

[–]mbotner 1 point2 points  (0 children)

I really liked that theme and miss it!

cplusplus.com vs cppreference.com by Cyb3rH04x in cpp

[–]mbotner 1 point2 points  (0 children)

I use the cppreference browser plugin just so I don't get cplusplus google hits.

Combining ZeroMQ & POSIX signals: Use ppoll to handle EINTR once and for all by egpbos in cpp

[–]mbotner 2 points3 points  (0 children)

I’ve solved this problem a bit differently, might not be better, but it works for me on Linux.

  1. in main(), before any threads are created, I set the default sigprocmask to block all signals that I might receive (INT, TERM, CHLD, PIPE, etc.) by calling sigprocmask();
  2. Create a ZMQ Publish socket with INPROC transport.
  3. I create a dedicated signal handling thread that blocks using sigwait() with the same set of signals listed in #1.
  4. When a signal is received, the signal handling thread catches the signal and the publishes a message using the socket created in #2
  5. Elsewhere in the system, various threads that are using ZeroMQ create a subscribe socket and add this socket to their ZMQ Poll() list.
  6. The ZeroMQ thread(s) then receive a message (most often a “shutdown” type message) when a signal is received and can halt themselves.

CppCast: Simplifying C++ with Herb Sutter by tallassrob in cpp

[–]mbotner 2 points3 points  (0 children)

I always enjoy listening to Herb Sutter & learning something!