aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc.BSD/rc2
-rw-r--r--etc.BSD/rc.shutdown2
-rw-r--r--src/start-stop-daemon.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/etc.BSD/rc b/etc.BSD/rc
index 1bf06e32..388b2664 100644
--- a/etc.BSD/rc
+++ b/etc.BSD/rc
@@ -9,7 +9,7 @@
# This gives us a nice colour boot :)
[ -z "$TERM" -o "$TERM" = "dumb" ] && export TERM="cons25"
-# Handle interupts
+# Handle interrupts
trap : SIGINT
trap "echo 'Boot interrupted'; exit 1" SIGQUIT
diff --git a/etc.BSD/rc.shutdown b/etc.BSD/rc.shutdown
index eb2344b2..fade4308 100644
--- a/etc.BSD/rc.shutdown
+++ b/etc.BSD/rc.shutdown
@@ -5,7 +5,7 @@
# Ensure we are called by init
[ "$PPID" = "1" ] || exit 0
-# Handle interupts
+# Handle interrupts
trap : SIGINT SIGQUIT
# Try and use stuff in /lib over anywhere else so we can shutdown
diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c
index 98e0e535..0f1c8205 100644
--- a/src/start-stop-daemon.c
+++ b/src/start-stop-daemon.c
@@ -391,7 +391,7 @@ static int run_stop_schedule (const char *exec, const char *cmd,
if (nanosleep (&ts, NULL) == -1) {
if (errno == EINTR)
- eerror ("%s: caught an interupt", applet);
+ eerror ("%s: caught an interrupt", applet);
else {
eerror ("%s: nanosleep: %s", applet, strerror (errno));
return (0);
@@ -984,7 +984,7 @@ int start_stop_daemon (int argc, char **argv)
while (nloops) {
if (nanosleep (&ts, NULL) == -1) {
if (errno == EINTR)
- eerror ("%s: caught an interupt", applet);
+ eerror ("%s: caught an interrupt", applet);
else {
eerror ("%s: nanosleep: %s", applet, strerror (errno));
return (0);