kill ( 'SIGNAL' , PID );
Lista de señales:
| Signal | Description | |
| SIGHUP | On hangup | |
| SIGINT | On interrupt | |
| SIGQUIT | On Quit key | |
| SIGILL | Illegal instruction | |
| SIGTRAP | Trap instruction | |
| SIGABRT | Abort message | |
| SIGIOT | Input/output transfer | |
| SIGBUS | Bus error | |
| SIGFPE | Floating-point error | |
| SIGKILL | Kill signal from system | |
| SIGUSR1 | User defined | |
| SIGSEGV | Segmentation violation | |
| SIGUSR2 | User defined | |
| SIGPIPE | Pipe fault (broken pipe) | |
| SIGALRM | Alarm | |
| SIGTERM | Termination | |
| SIGSTKFLT | Stack fault | |
| SIGchLD | Signal from child | |
| SIGCONT | Continuing a stopped process | |
| SIGSTOP | Stopping a process | |
| SIGTSTP | Stopping a process from terminal | |
| SIGTTIN | Stopping a process reading from controlling terminal | |
| SIGTTOU | Stopping a process writing to controlling terminal | |
| SIGURG | Urgent condition | |
| SIGXCPU | Excessive CPU limits reached | |
| SIGXFSZ | Excessive file size limits reached | |
| SIGVTALRM | Virtual interval timer expired | |
| SIGPROF | Profiling interval timer expired | |
| SIGWINch | Window size changed by background process | |
| SIGIO | Asynchronous I/O | |
| SIGPWR | Power failure | |
| SIGUNUSED | Unused |
ejemplo:
kill ('KILL' , $PID);
REF:
http://ods.com.ua/win/eng/program/Perl5Unleashed/ch14.phtml#Signals
No hay comentarios:
Publicar un comentario