forked from external/yambar
main: bytes (from write() when printing PID) *is* used
This commit is contained in:
parent
d4755d94b0
commit
3f940ec2a8
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -157,7 +157,7 @@ print_pid(const char *pid_file, bool *unlink_at_exit)
|
|||
char pid[32];
|
||||
snprintf(pid, sizeof(pid), "%u\n", getpid());
|
||||
|
||||
ssize_t bytes __attribute((unused)) = write(pid_fd, pid, strlen(pid));
|
||||
ssize_t bytes = write(pid_fd, pid, strlen(pid));
|
||||
close(pid_fd);
|
||||
|
||||
if (bytes < 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue