1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 1997, 1998, 1999 5 * Sleepycat Software. All rights reserved. 6 */ 7 8 #ifdef HAVE_CONFIG_H 9 #include "config.h" 10 #endif /* HAVE_CONFIG_H */ 11 12 #ifndef HAVE_RAISE 13 14 #ifndef NO_SYSTEM_INCLUDES 15 #include <signal.h> 16 #include <unistd.h> 17 #endif 18 19 /* 20 * raise -- 21 * Send a signal to the current process. 22 * 23 * PUBLIC: #ifndef HAVE_RAISE 24 * PUBLIC: int raise __P((int)); 25 * PUBLIC: #endif 26 */ 27 int raise(s)28raise(s) 29 int s; 30 { 31 return (kill(getpid(), s)); 32 } 33 #endif /* HAVE_RAISE */ 34