Fix problem of retaining !LATE-TYPE-COLD-INIT symbol
[sbcl.git] / tests / kill-non-lisp-thread.c
blob3af7f17f31bf29ba2c113095317dcc99bb18c9e2
1 #include <pthread.h>
2 #include <signal.h>
4 void
5 wait_a_bit(void)
7 sleep(5);
10 void
11 kill_non_lisp_thread(void)
13 pthread_t kid;
14 if (pthread_create(&kid, 0, (void *(*)(void *))wait_a_bit, 0) < 0) {
15 perror("pthread_create");
16 exit(1);
18 pthread_kill(kid, SIGPIPE);