public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* write and kill in dl-tls.c
@ 2002-05-02 15:32 Roland McGrath
  2002-05-02 22:10 ` Ulrich Drepper
  0 siblings, 1 reply; 3+ messages in thread
From: Roland McGrath @ 2002-05-02 15:32 UTC (permalink / raw)
  To: GNU libc hackers

It seems improper that dl-tls.c:oom uses __libc_write and __kill and
__getpid.  Why not just use _dl_fatal_printf?  At the very least, use raise
instead of kill.  

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: write and kill in dl-tls.c
  2002-05-02 15:32 write and kill in dl-tls.c Roland McGrath
@ 2002-05-02 22:10 ` Ulrich Drepper
  2002-05-03  1:02   ` Roland McGrath
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Drepper @ 2002-05-02 22:10 UTC (permalink / raw)
  To: Roland McGrath; +Cc: GNU libc hackers

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

On Thu, 2002-05-02 at 15:32, Roland McGrath wrote:

> It seems improper that dl-tls.c:oom uses __libc_write and __kill and
> __getpid.  Why not just use _dl_fatal_printf?  At the very least, use raise
> instead of kill.

Well, I wanted to implement it similar to what the other implementations
do.  But it's not really necessary.  _dl_fatal_printf should work fine.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: write and kill in dl-tls.c
  2002-05-02 22:10 ` Ulrich Drepper
@ 2002-05-03  1:02   ` Roland McGrath
  0 siblings, 0 replies; 3+ messages in thread
From: Roland McGrath @ 2002-05-03  1:02 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: GNU libc hackers

> Well, I wanted to implement it similar to what the other implementations do.

The behavior is fine with me, it's just the implementation I don't like
(since it presumes POSIXoid facilities are the best thing to use).  I'm not
sure if _dl_fatal_printf or __libc_fatal is the best thing to use.  The
latter calls abort.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-03  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-02 15:32 write and kill in dl-tls.c Roland McGrath
2002-05-02 22:10 ` Ulrich Drepper
2002-05-03  1:02   ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).