remove unused var
This commit is contained in:
parent
9fb39a4fb2
commit
2949af1ab7
@ -617,9 +617,7 @@ pid_t Pidfile::read_pid()
|
|||||||
return (pid_t)-1;
|
return (pid_t)-1;
|
||||||
|
|
||||||
char buf[16];
|
char buf[16];
|
||||||
int error;
|
|
||||||
int i = read(fd, buf, sizeof(buf) - 1);
|
int i = read(fd, buf, sizeof(buf) - 1);
|
||||||
error = errno;
|
|
||||||
::close(fd);
|
::close(fd);
|
||||||
if (i <= 0)
|
if (i <= 0)
|
||||||
return (pid_t)-1;
|
return (pid_t)-1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user