help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reentrant argp


From: Niels Möller
Subject: Re: Reentrant argp
Date: 20 May 2003 10:25:51 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

"M. Gerards" <metgerards@student.han.nl> writes:

> There is some comment about this in glibc, IIRC a lock is used for getopt. So 
> I 
> wonder if this locking also works for the Hurd (Marcus had doubts, I cannot 
> remember the details).

Ah, that's right. Don't know the answer to your question, but that
lock should make it work to call argp from several threads, it's still
dangerous to call argp recursively.

> > My hacked argp,
> > http://www.lysator.liu.se/~nisse/misc/argp-standalone-1.2.tar.gz
> > doesn't depend on getopt, and doesn't use global variables.
> 
> Ahh, interesting. Have you sent a patch to the glibc mailinglist? This would 
> be 
> _really_ usefull for me :)

I think the glibc folks are aware of it. I also mail Miles to remind
him once a year or so ;-)

/Niels




reply via email to

[Prev in Thread] Current Thread [Next in Thread]