Skip to content
Advertisement

How to get errno when epoll_wait returns EPOLLERR?

Is there a way to find out the errno when epoll_wait returns EPOLLERR for a particular fd? Is there any further information about the nature of the error? Edit: Adding more information to prevent ambiguity epoll_wait waits on a number of file descriptors. When you call epoll_wait you pass it an array of epoll_event structures: The epoll_data_t structure has the

How to install a Kerberos server on Debian

I’m trying to build up a Kerberos Server on a Debian computer but I’m kind of lost with all the configuration files. Can anyone tell me any good step by step tutorial of how to install and configure a kerberos Server? Or what’s the best distriburion where I can install Kerberos? Answer Debian’s packages try to do most of the

How can I install xclip on an EC2 instance?

I’m following Github’s instructions for adding an SSH key. I’ve generated the id_rsa.pub file from my AWS EC2 instance, but I cannot complete the step that has me copy the contents of the file using xclip because I cannot install xclip onto the EC2 instance. I tried to install xclip on the EC2 instance using sudo yum install xclip, but

What is the performance penalty of C++11 thread_local variables in GCC 4.8?

From the GCC 4.8 draft changelog: G++ now implements the C++11 thread_local keyword; this differs from the GNU __thread keyword primarily in that it allows dynamic initialization and destruction semantics. Unfortunately, this support requires a run-time penalty for references to non-function-local thread_local variables even if they don’t need dynamic initialization, so users may want to continue to use __thread for

Can I wrap windows dll to use it in Python under Linux?

Is it possible to wrap Windows DLL (driver for specific hardware) to use it from Python under Linux. If yes, what would be the best approach? Answer Disclaimer: Depending on the context, the following is certainly NOT the best approach. It is just ONE possible approach that kind of fits the description. I wrote a small Python module for calling

Interacting with a .db file from Linux shell

I recently installed minidlna, a lightweight UPnP server, on my Raspberry Pi. Since this lacks the web interface of other programs such as Mediatomb, I thought it could be an interesting project for me to write one. I believe minidlna stores library information in a single file named “files.db”. EDIT: I was advised to check the output of file files.db

Advertisement