Преглед изворни кода

s-s-d: Use SIGTERM instead of literal 15

Guillem Jover пре 17 година
родитељ
комит
09e696654a
3 измењених фајлова са 10 додато и 3 уклоњено
  1. 7 0
      ChangeLog
  2. 2 2
      man/start-stop-daemon.8
  3. 1 1
      utils/start-stop-daemon.c

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2009-01-04  Guillem Jover  <guillem@debian.org>
+
+	* utils/start-stop-daemon.c (signal_nr): Initialize with SIGTERM
+	instead of literal 15.
+	* man/start-stop-daemon.8: Refer to signal as TERM instead of
+	literal 15.
+
 2009-01-04  Guillem Jover  <guillem@debian.org>
 
 	* lib/dpkg.h (LOCALLIBDIR): Move macro to ...

+ 2 - 2
man/start-stop-daemon.8

@@ -1,4 +1,4 @@
-.TH start\-stop\-daemon 8 "2008-01-30" "Debian Project" "dpkg utilities"
+.TH start\-stop\-daemon 8 "2009-01-04" "Debian Project" "dpkg utilities"
 .SH NAME
 start\-stop\-daemon \- start and stop system daemon programs
 .
@@ -105,7 +105,7 @@ Change to \fIgroup\fP or \fIgid\fP when starting the process.
 .BR \-s ", " \-\-signal " \fIsignal\fP"
 With
 .BR \-\-stop ,
-specifies the signal to send to processes being stopped (default 15).
+specifies the signal to send to processes being stopped (default TERM).
 .TP
 .BR \-R ", " \-\-retry " \fItimeout\fP|\fIschedule\fP"
 With

+ 1 - 1
utils/start-stop-daemon.c

@@ -110,7 +110,7 @@ static int start = 0;
 static int stop = 0;
 static int background = 0;
 static int mpidfile = 0;
-static int signal_nr = 15;
+static int signal_nr = SIGTERM;
 static int user_id = -1;
 static int runas_uid = -1;
 static int runas_gid = -1;