[arch-general] Seemingly archlinux specific problem with logkeys

Scott Lawrence bytbox at gmail.com
Wed Jan 4 07:03:56 EST 2012


On 01/04/2012 06:33 AM, SanskritFritz wrote:
> I started a topic on the forum, but we didnt reach to any solution:
> https://bbs.archlinux.org/viewtopic.php?id=129528
> 
> In hope for a more competent audience, I repost my question now here:
> 
> It looks like there is an archlinux specific problem with logkeys:
> http://code.google.com/p/logkeys/issues/detail?id=60
> I also am hit by this, and would like to ask for your help guys. Any
> idea what could cause this?
> In a nutshell:
> 
> strace -f logkeys -s
> shows that the logfile could not be written for some reason:
> [pid 10516] write(1, "Logging started ...\n\n2011-11-02 "..., 48) = -1
> EBADF (Bad file descriptor)
> 
> The comments all have in common that they use archlinux, hence I dared
> to post here.

Huh. logkeys apparently does some stunny fuff with stdout
(stdout=freopen(fname, "a", stdout) instead of just fopen'ing a new
file) - changing that to be more "normal" fixes the problem for me.
Attached is my patch for this. (I'll also stick it on the issue tracker.)

-- 
Scott Lawrence
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20120104/5ae6abe8/attachment.asc>


More information about the arch-general mailing list