Process and Signal scripts
all in wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio
Many examples come from either Beginning Linux Programming by Neil Matthew and Richard Stones Or from Dr. Robert Siegfried
using system call | wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/process1.c |
using exec family of calls | wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/process2.c |
simple fork | wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/fork1.c |
fork with waiting | wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/fork1a.c |
override control c using signal command | wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/ctrlc1.c |
override control c using sigaction |
wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/ctrlc2.c
|
sending signals from child to parent |
wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/alarm.c
|
overriding the processing of Ctrl C for 10 seconds | wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/siguser.c |
fork to create a child process and wait | wget http://home.adelphi.edu/~pe16132/csc271/note/scripts/fileio/few.c |