minor beautifications

This commit is contained in:
Christian Grothoff 2015-03-15 17:14:11 +01:00
parent 39f5ff83c6
commit 1479d2ce06

View File

@ -479,6 +479,7 @@ TALER_MINT_key_reload_loop (void)
{ {
struct sigaction act; struct sigaction act;
struct sigaction rec; struct sigaction rec;
int ret;
if (0 != pipe (reload_pipe)) if (0 != pipe (reload_pipe))
{ {
@ -499,6 +500,7 @@ TALER_MINT_key_reload_loop (void)
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
ret = GNUNET_OK;
/* FIXME: allow for 'clean' termination or restart (#3474) */ /* FIXME: allow for 'clean' termination or restart (#3474) */
while (1) while (1)
{ {
@ -518,11 +520,14 @@ TALER_MINT_key_reload_loop (void)
read_again: read_again:
errno = 0; errno = 0;
res = read (reload_pipe[0], &c, 1); res = read (reload_pipe[0],
&c,
1);
if ((res < 0) && (EINTR != errno)) if ((res < 0) && (EINTR != errno))
{ {
GNUNET_break (0); GNUNET_break (0);
return GNUNET_SYSERR; ret = GNUNET_SYSERR;
break;
} }
if (EINTR == errno) if (EINTR == errno)
goto read_again; goto read_again;
@ -536,7 +541,7 @@ read_again:
"Failed to restore signal handler.\n"); "Failed to restore signal handler.\n");
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
return GNUNET_OK; return ret;
} }