Skip to content

Commit

Permalink
- ircd.c:write_pidfile(): removed the PID from the error message
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.2.x@5736 82007160-df01-0410-b94d-b575c5fd34c7
  • Loading branch information
michael committed Mar 29, 2015
1 parent bfbc437 commit 804f536
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/ircd.c
Expand Up @@ -63,13 +63,12 @@
GeoIP *geoip_ctx;
#endif

/* /quote set variables */
struct SetOptions GlobalSetOptions;
struct SetOptions GlobalSetOptions; /* /quote set variables */
struct Counter Count;
struct ServerState_t server_state;
struct ServerStatistics ServerStats;
struct timeval SystemTime;
struct Connection meConnection; /* That's also part of me */
struct Connection meConnection; /* That's also part of me */
struct Client me = { .connection = &meConnection }; /* That's me */

char **myargv;
Expand Down Expand Up @@ -317,8 +316,8 @@ write_pidfile(const char *filename)
snprintf(buff, sizeof(buff), "%u\n", pid);

if (fputs(buff, fb) == -1)
ilog(LOG_TYPE_IRCD, "Error writing %u to pid file %s: %s",
pid, filename, strerror(errno));
ilog(LOG_TYPE_IRCD, "Error writing to pid file %s: %s",
filename, strerror(errno));

fclose(fb);
}
Expand Down

0 comments on commit 804f536

Please sign in to comment.