remove unused var

This commit is contained in:
Jean-Francois Dockes 2014-03-10 10:12:13 +01:00
parent 9fb39a4fb2
commit 2949af1ab7

View File

@ -617,9 +617,7 @@ pid_t Pidfile::read_pid()
return (pid_t)-1;
char buf[16];
int error;
int i = read(fd, buf, sizeof(buf) - 1);
error = errno;
::close(fd);
if (i <= 0)
return (pid_t)-1;