Home | History | Annotate | Download | only in seccomp

Lines Matching defs:thread

92 #define SECCOMP_RET_KILL_THREAD	 0x00000000U /* kill the thread */
624 /* This is a thread task to die via seccomp filter violation. */
637 /* Prepare a thread that will kill itself or both of us. */
640 pthread_t thread;
679 /* Start a thread that will exit immediately. */
680 ASSERT_EQ(0, pthread_create(&thread, NULL, kill_thread, (void *)false));
681 ASSERT_EQ(0, pthread_join(thread, &status));
684 /* Start a thread that will die immediately. */
685 thread, NULL, kill_thread, (void *)true));
686 ASSERT_EQ(0, pthread_join(thread, &status));
690 * If we get here, only the spawned thread died. Let the parent know
691 * the whole process didn't die (i.e. this thread, the spawner,
712 /* If only the thread was killed, we'll see exit 42. */
2288 * If a thread is still running, it may be stuck, so hit
2588 /* Signal the thread to clean up*/