Branch: Tag:

2004-03-08

2004-03-08 15:02:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported improved diagnostics from Pike 7.5.

Rev: src/threads.c:1.174
Rev: src/threads.h:1.121

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.173 2004/03/03 13:59:10 grubba Exp $"); + RCSID("$Id: threads.c,v 1.174 2004/03/08 15:02:43 grubba Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
35:      PMOD_EXPORT void thread_low_error (int errcode)   { -  fatal ("Unexpected error from thread function: %d\n", errcode); +  fatal ("%s:%d: %s\n" +  "Unexpected error from thread function: %d\n", +  fname, lineno, cmd, errcode);   }      #ifdef USE_CLOCK_FOR_SLICES