-#if 0
-/**
- * \fn void Proc_SetSignalHandler(int Num, void *Handler)
- * \brief Sets the signal handler for a signal
- */
-void Proc_SetSignalHandler(int Num, void *Handler)
-{
- if(Num < 0 || Num >= NSIG) return;
-
- gCurrentThread->SignalHandlers[Num] = Handler;
-}
-
-/**
- * \fn void Proc_SendSignal(int TID, int Num)
- */
-void Proc_SendSignal(int TID, int Num)
-{
- tThread *thread = Proc_GetThread(TID);
- void *handler;
-
- if(!thread) return ;
-
- handler = thread->SignalHandlers[Num];
-
- // Panic?
- if(handler == SIG_ERR) {
- Proc_Kill(TID);
- return ;
- }
- // Dump Core?
- if(handler == -2) {
- Proc_Kill(TID);
- return ;
- }
- // Ignore?
- if(handler == -2) return;
-
- // Check the type and handle if the thread is already in a signal
- if(thread->CurSignal != 0) {
- if(Num < _SIGTYPE_FATAL)
- Proc_Kill(TID);
- } else {
- while(thread->CurSignal != 0)
- Proc_Yield();
- }
- }
-
- //TODO:
-}
-
-#endif
-