threads.c (346B)
1 /* 2 * threads.c: a guest that starts a second thread, which the plugin 3 * stops rather than record. 4 * 5 * Copyright (c) 2026 Jared Tobin 6 * License: MIT 7 */ 8 #include <pthread.h> 9 10 static void *work(void *p) { return p; } 11 12 int main(void) { 13 pthread_t t; 14 if (pthread_create(&t, NULL, work, NULL) != 0) return 1; 15 return pthread_join(t, NULL); 16 }