]> git.ipfire.org Git - people/ms/dma.git/commit - dma.c
catch SIGHUP so that sleeps can be interrupted by the user
authorSimon Schubert <2@0x2c.org>
Mon, 28 Jun 2010 22:49:53 +0000 (00:49 +0200)
committerSimon Schubert <2@0x2c.org>
Mon, 28 Jun 2010 22:50:56 +0000 (00:50 +0200)
commit247523d6ea29cfb4df93a2fa197bb7b0f0ca8c0f
tree6e398088f12862e0391ea7a078fbb2c7e91ece7f
parent4b3ad5a7da5d03106685218c03c8eb49ce6f8a68
catch SIGHUP so that sleeps can be interrupted by the user

A SIGHUP sent to the dma process will run the no-op signal handler and
break the sleep(3) call in deliver.
Do not increase the backoff if sleep was interrupted.

Submitted-by: Peter Pentchev <roam@ringlet.net> (earlier version)
dma.c