Enhancement #750 » 0007-sanitize-fix-unused-return-values.patch
| src/bip_main.c | ||
|---|---|---|
|
else
|
||
|
pid = getpid();
|
||
|
snprintf(buf, (size_t) 29, "%lu\n", (unsigned long int)pid);
|
||
|
write(fd, buf, strlen(buf));
|
||
|
ssize_t written;
|
||
|
written = write(fd, buf, strlen(buf));
|
||
|
if (written <= 0)
|
||
|
mylog(LOG_ERROR, "Could not write to PID file");
|
||
|
close(fd);
|
||
|
bip.listener = listen_new(conf_ip, conf_port, conf_css);
|
||