From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu From: Joel “chesky” Salomon Date: Tue, 10 Oct 2006 23:30:56 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Subject: [9fans] handling notes Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: c8643d84-ead1-11e9-9d60-3106f5b1d025 I'm doing an exercise for my Operating Systems class here at Cooper, and = I'm supposed to be catching signals. The professor was nice enough to le= t me catch notes on Plan 9 if I could make that work. The code is at and . Basically, katp installs a note handler wi= th atnotify then spawns a pager to catenate its command-line aguments to.= Wdp, the World=E2=80=99s Dumbest Pager, reads a single =C2=BDKB chunk f= rom stdin then closes it and exits. Eventually, katp is supposed to recognize that the pipe is closed and res= pawn wdp; I=E2=80=99m not there yet. Right now, I can=E2=80=99t get the = note handler to print anything on pipe close. If I add a sleep(long time= ) somewhere and interrupt it, the handler reports it; just not for the cl= osed pipe. What am I missing or doing wrong? Thanks, --Joel