]> code.citadel.org Git - citadel.git/commitdiff
* print a hint where we are when we shut down, so we can find gmon.out
authorWilfried Göesgens <willi@citadel.org>
Tue, 23 Oct 2007 21:20:50 +0000 (21:20 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 23 Oct 2007 21:20:50 +0000 (21:20 +0000)
webcit/webserver.c

index d67fcc956dc4272fa26d7d7fbe5db4b5077674ab..a629036e04d7d1a8c3f1de3c91d184d2e9898085 100644 (file)
@@ -475,7 +475,9 @@ void graceful_shutdown_watcher(int signum) {
 pid_t current_child;
 void graceful_shutdown(int signum) {
 //     kill(current_child, signum);
-       lprintf (1, "bye going down gracefull.");
+       char wd[SIZ];
+       getcwd(wd, SIZ);
+       lprintf (1, "bye going down gracefull.[%s]\n", wd);
        time_to_die = 1;
        exit(0);
 }