Tag Archives: signal

ksig – sending signals from the kernel space to the user space

While syscall kill() gives users the ability to send certain signal to certain process in the user space of Linux, the story is totally different if we want to send signals from the kernel space to the user space. After … Continue reading

Posted in Dave's Tools, OS, Programming | Tagged , , , | Leave a comment

trap – signal handling in shell

Ways for shell to create ‘multi-thread’ scripts (用shell写多线程脚本) An enhancement for ‘tod‘(利用trap改进多线程shell脚本) Yes, the way to write ‘multi-thread’ for shell is using ‘&’ to submit background job. We will use ‘tod’ for example: In ‘tod’, there are in total 3 … Continue reading

Posted in Programming | Tagged , , , , , | 2 Comments