Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2017 19:32:39 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320165 - head/sbin/devd
Message-ID:  <201706201932.v5KJWenJ099582@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Tue Jun 20 19:32:39 2017
New Revision: 320165
URL: https://svnweb.freebsd.org/changeset/base/320165

Log:
  devd(8): Remove pidfile on shutdown
  
  MFC after:	3 weeks
  Sponsored by:	Spectra Logic Corp

Modified:
  head/sbin/devd/devd.cc

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc	Tue Jun 20 19:16:06 2017	(r320164)
+++ head/sbin/devd/devd.cc	Tue Jun 20 19:32:39 2017	(r320165)
@@ -1108,6 +1108,7 @@ event_loop(void)
 		if (FD_ISSET(seqpacket_fd, &fds))
 			new_client(seqpacket_fd, SOCK_SEQPACKET);
 	}
+	cfg.remove_pidfile();
 	close(seqpacket_fd);
 	close(stream_fd);
 	close(fd);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706201932.v5KJWenJ099582>