projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0261ef
)
Avoid segfault when pthread_key_create fails
author
Gisle Aas
<gisle@aas.no>
Wed, 5 Jan 2005 01:09:51 +0000
(17:09 -0800)
committer
Nicholas Clark
<nick@ccl4.org>
Wed, 5 Jan 2005 11:25:29 +0000
(11:25 +0000)
Message-ID: <lracroz1gg.fsf@caliper.activestate.com>
p4raw-id: //depot/perl@23749
thread.h
patch
|
blob
|
history
diff --git
a/thread.h
b/thread.h
index
93062c5
..
5de28fb
100644
(file)
--- a/
thread.h
+++ b/
thread.h
@@
-334,8
+334,7
@@
STMT_START { \
int _eC_; \
if ((_eC_ = pthread_key_create(&PL_thr_key, 0))) { \
- PerlIO_printf(PerlIO_stderr(), "panic: pthread_key_create (%d) [%s:%d]", \
- _eC_, __FILE__, __LINE__); \
+ write(2, "panic: pthread_key_create failed\n", 33); \
exit(1); \
} \
} STMT_END