Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149356422
D48768.1789912475.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
888 B
Referenced Files
None
Subscribers
None
D48768.1789912475.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D48768: ctld: Write the pidfile once after forking
Attached
Detach File
Event Timeline
Log In to Comment