X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=d35113a500f0a2b78ce853996db9413bafd0be4f;hp=68cc5ab55f7c8da0362bb1ae9aa018014a97ede9;hb=6ab1256d9cf3e6e518e5967ad07e32bb2268f718;hpb=6de8cd316c938093c3d9e5e07d959daef4768575 diff --git a/command.c b/command.c index 68cc5ab5..d35113a5 100644 --- a/command.c +++ b/command.c @@ -40,8 +40,16 @@ static unsigned char rc4_buf[2 * RC4_KEY_LEN]; extern struct misc_meta_data *mmd; extern struct sender senders[]; -static void dummy(__a_unused int s) -{} +static void dummy(int s) +{ + /* + * At least on Solaris, SIGUSR1 is one-shot, i.e. the signal action is + * restored to the default state once the signal handler has been + * called. + */ + if (s == SIGUSR1) + signal(SIGUSR1, dummy); +} static void mmd_dup(struct misc_meta_data *new_mmd) {