Re: [dwm] dwm-5.3

From: Donald Chai <donald.chai_AT_gmail.com>
Date: Sat, 6 Dec 2008 19:52:04 -0800

On Dec 6, 2008, at 1:02 PM, Guillaume Quintin wrote:

> This is a little very basic patch that does what I asked above. I
> tried
> this using the SIGALRM signal but I "randomly" got fatal errors about
> memory (un)locks.

Your code looks like an idle loop; I recommend you read the man page
for select(). The last argument is a timeout, which is what you want
to use instead of alarm(1), and will avert the "random" errors.
Received on Sun Dec 07 2008 - 03:52:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Dec 07 2008 - 04:00:05 UTC