summaryrefslogtreecommitdiff
path: root/src/dd.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-09-15 14:18:15 +0000
committerJim Meyering <jim@meyering.net>1997-09-15 14:18:15 +0000
commit312d78eca69c00eff8fa1a5290490ffce26b8820 (patch)
tree3a196da12cb381ce5080a9ccc7b54abc58167f4d /src/dd.c
parent6a4773b2d9a7b4b453ca338b45d1549ad460e51b (diff)
downloadcoreutils-312d78eca69c00eff8fa1a5290490ffce26b8820.tar.xz
(install_handler): Rename from sig_handler.
Diffstat (limited to 'src/dd.c')
-rw-r--r--src/dd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dd.c b/src/dd.c
index c4b0f9de0..22a1ed7e9 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -340,7 +340,7 @@ siginfo_handler (int sig)
/* Encapsulate portability mess of establishing signal handlers. */
static void
-handle_sig (int sig_num, RETSIGTYPE (*sig_handler) (int sig))
+install_handler (int sig_num, RETSIGTYPE (*sig_handler) (int sig))
{
#ifdef _POSIX_VERSION
struct sigaction sigact;
@@ -422,10 +422,10 @@ main (int argc, char **argv)
output_file = _("standard output");
}
- handle_sig (SIGINT, interrupt_handler);
- handle_sig (SIGQUIT, interrupt_handler);
- handle_sig (SIGPIPE, interrupt_handler);
- handle_sig (SIGINFO, siginfo_handler);
+ install_handler (SIGINT, interrupt_handler);
+ install_handler (SIGQUIT, interrupt_handler);
+ install_handler (SIGPIPE, interrupt_handler);
+ install_handler (SIGINFO, siginfo_handler);
copy ();
}