Displaying 3 results from an estimated 3 matches for "ff39c85".
2009 Sep 05
5
[tftpd PATCH 0/5] pidfile option and syslog fix
Hi,
This is my current patch queue. The patches are independent, AFAIK,
so feel free to cherry-pick or reject them independently.
The bottom one was needed for a successful build here; the top one
contains all the modifications you requested on IRC, and more.
Meanwhile I hit one of the four stray TABs in tftpd.c, and decided to
get rid of them.
Comments welcome.
---
Ferenc Wagner (5):
2009 Jul 19
0
[PATCH] Untabify tftpd.c
Signed-off-by: Ferenc Wagner <wferi at niif.hu>
---
tftpd/tftpd.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c
index 1f5d9d6..ff39c85 100644
--- a/tftpd/tftpd.c
+++ b/tftpd/tftpd.c
@@ -364,7 +364,7 @@ int main(int argc, char **argv)
srand(time(NULL) ^ getpid());
while ((c = getopt_long(argc, argv, short_options, long_options, NULL))
- != -1)
+ != -1)
switch (c) {
case '4':...
2009 Jul 19
3
[PATCH] tftpd.c: write a pid file in standalone mode
...g the select loop,
so that it does not affect the permissions of the pid file.
Signed-off-by: Ferenc Wagner <wferi at niif.hu>
---
tftpd/tftpd.c | 38 ++++++++++++++++++++++++++++++++++----
1 files changed, 34 insertions(+), 4 deletions(-)
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c
index ff39c85..d38a961 100644
--- a/tftpd/tftpd.c
+++ b/tftpd/tftpd.c
@@ -144,6 +144,13 @@ static void handle_sighup(int sig)
caught_sighup = 1;
}
+/* Handle exit requests by SIGTERM and SIGINT */
+static volatile sig_atomic_t exit_signal = 0;
+static void handle_exit(int sig)
+{
+ exit_signal = sig;...