Page MenuHomeFreeBSD

D48768.1789912475.diff
No OneTemporary

Size
888 B
Referenced Files
None
Subscribers
None

D48768.1789912475.diff

diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -2381,7 +2381,7 @@
}
static void
-main_loop(struct conf *conf, bool dont_fork)
+main_loop(bool dont_fork)
{
struct kevent kev;
struct portal *portal;
@@ -2393,8 +2393,6 @@
#endif
int error, client_fd;
- pidfile_write(conf->conf_pidfh);
-
for (;;) {
if (sighup_received || sigterm_received || timed_out())
return;
@@ -2762,12 +2760,14 @@
conf_delete(oldconf);
oldconf = NULL;
+ pidfile_write(newconf->conf_pidfh);
+
/* Schedule iSNS update */
if (!TAILQ_EMPTY(&newconf->conf_isns))
set_timeout((newconf->conf_isns_period + 2) / 3, false);
for (;;) {
- main_loop(newconf, dont_daemonize);
+ main_loop(dont_daemonize);
if (sighup_received) {
sighup_received = false;
log_debugx("received SIGHUP, reloading configuration");

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 20, 1:54 PM (17 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29812352
Default Alt Text
D48768.1789912475.diff (888 B)

Event Timeline