Changeset f014bc4


Ignore:
Timestamp:
Feb 26, 2009, 1:14:18 AM (15 years ago)
Author:
Edward Z. Yang <edwardzyang@…>
Branches:
master, debian, mac, no-cups, nodebathena, web
Children:
c2f6180
Parents:
b5d15a0
git-author:
Edward Z. Yang <edwardzyang@…> (02/26/09 01:14:18)
git-committer:
Edward Z. Yang <edwardzyang@…> (02/26/09 01:14:18)
Message:

Clear status if lprm'ed.

Signed-off-by: Edward Z. Yang <edwardzyang@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gutenbach/debian/lib/sipbmp3-filter

    rb5d15a0 rf014bc4  
    9999open(STATUS, '>', '/var/run/sipbmp3/status') or die("Can't open status file /var/run/sipbmp3/status");
    100100
     101# SIGHUP handler
     102sub clear_status {
     103    # Possible race condition if the previous status is still going
     104    open(STA, '>', '/var/run/sipbmp3/status');
     105    close(STA);
     106    open(ZEPH, '|/usr/athena/bin/zwrite -d -n -c '. $zephyr_class .' -i '.
     107        'sipbmp3@'.$host.' -s "SIPB LPR music spooler"');
     108    print(ZEPH "Playback aborted.\n");
     109    close(ZEPH);
     110    die;
     111}
     112$SIG{HUP} = \&clear_status;
     113
    101114# So, the file we're currently processing is "-d/-e".
    102115
Note: See TracChangeset for help on using the changeset viewer.