Skip to content

Commit

Permalink
Flash on SIGUSR1.
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Jan 21, 2012
1 parent 4fa5e3f commit 86f403b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usbiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ main (int argc, char *argv[])

register_signal (SIGINT, kq);
register_signal (SIGTERM, kq);
register_signal (SIGUSR1, kq);

while (!quit) {
struct kevent ke;
Expand All @@ -166,6 +167,9 @@ main (int argc, char *argv[])
case SIGTERM:
quit = 1;
break;
case SIGUSR1:
usbnotifier_flash (notifier, COLOR_YELLOW);
break;
}
break;
case EVFILT_VNODE:
Expand Down

0 comments on commit 86f403b

Please sign in to comment.