Introduction#
Refer to pictures in Pipes and Case Study: IPC (Parent/Child) Over Unnamed Pipe
Scenario
Database inserts from stdin
(svnr, firstname, lastname)
, some c++ trickery to split.auto [svrn, firstname, lastname] = read_record();
SIGUSR1
:commit+log+debug
request asynchronously (by the auditor?)SIGUSR2
:
Start with
read_record(STDIN_FILENO)
, and wonder how to react on signals
and check on
EINTR
?