Displaying 1 result from an estimated 1 matches for "18896c9".
Did you mean:
1889699
2009 Jul 04
2
[PATCH] Create /var/run/tftpd-hpa.pid in standalone mode
...thing exists in standalone mode.
SIGTERM and SIGINT should be catched and considered normal, I guess.
Signed-off-by: Ferenc Wagner <wferi at niif.hu>
---
tftpd/tftpd.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c
index 1f5d9d6..18896c9 100644
--- a/tftpd/tftpd.c
+++ b/tftpd/tftpd.c
@@ -517,6 +517,7 @@ int main(int argc, char **argv)
/* If we're running standalone, set up the input port */
if (standalone) {
+ FILE *pidfile;
#ifdef HAVE_IPV6
if (ai_fam != AF_INET6) {
#endif
@@ -702,6 +703,12 @@ int...