/* * Copyright (c) 2005, Haiku Project. All rights reserved. * Distributed under the terms of the MIT license. * * Author(s): * Jérôme Duval */ #include #include #include #include int pause(void) { sigset_t mask; sigemptyset(&mask); errno = _kern_sigsuspend(&mask); pthread_testcancel(); return -1; }