📄 makefile
字号:
all: wait_4_sig.oinclude ../../../rtl.mkclean: rm -f *.ohelp: @echo "/***************************************************************/" @echo "/***************************************************************/" @echo "/* In this program, we prove most of implemented */" @echo "/* functionalities: pthread_sigmask, sigsuspend, pthread_kill, */" @echo "/* terminating threads from signal handlers, blocked mask ... */" @echo "/* The logic of the program consists in a master thread that */" @echo "/* sends a growing window of signals to the following slave */" @echo "/* thread. Each slave thread allows only one signal to come */" @echo "/* through and will hang thereafter. */" @echo "/* Only the handler for the signal that is unblocked will be */" @echo "/* executed. The other signals generated don't have any */" @echo "/* effect because they are blocked. */" @echo "/***************************************************************/" @echo "/***************************************************************/"test: all help @echo "First we remove any existing rtl-modules" @echo "You may see error warnings from \"make\" - ignore them" @echo "Type <return> to continue" @read junk (cd ../../../; scripts/rmrtl) @echo "Now insert the fifo and scheduler" @echo "Type <return> to continue" @read junk (cd ../../../; scripts/insrtl) @echo "Now start the real-time tasks module" @echo "Type <return> to continue" @read junk @tail -f /var/log/messages -n 0 & @insmod wait_4_sig.o @sleep 6 @echo "Now let's stop the application" @echo "Type <return> to finish" @read junk @rmmod wait_4_sig @kill `pidof -s tail`include ../../../Rules.make
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -