remove trailing \n from string passed to err()

This commit is contained in:
Alexandre Ratchov 2016-01-09 09:56:28 +01:00
parent 6436780b57
commit e20bb8997d
1 changed files with 3 additions and 3 deletions

View File

@ -243,11 +243,11 @@ unsetsig(void)
sa.sa_flags = SA_RESTART;
sa.sa_handler = SIG_DFL;
if (sigaction(SIGHUP, &sa, NULL) < 0)
err(1, "unsetsig(hup): sigaction failed\n");
err(1, "unsetsig(hup): sigaction failed");
if (sigaction(SIGTERM, &sa, NULL) < 0)
err(1, "unsetsig(term): sigaction failed\n");
err(1, "unsetsig(term): sigaction failed");
if (sigaction(SIGINT, &sa, NULL) < 0)
err(1, "unsetsig(int): sigaction failed\n");
err(1, "unsetsig(int): sigaction failed");
}
void