Re-name and fix documentation for ss_read().
[oweals/dinit.git] / src / proc-service.cc
index d664142dd00b55bbc38bc50ba96608b3b356d688..e6ad098e09ba02160cf7340721a436afe4797ffa 100644 (file)
@@ -407,7 +407,7 @@ bgproc_service::read_pid_file(bp_sys::exit_status *exit_status) noexcept
     }
 
     char pidbuf[21]; // just enough to hold any 64-bit integer
-    int r = ss_read(fd, pidbuf, 20);
+    int r = complete_read(fd, pidbuf, 20);
     if (r < 0) {
         // Could not read from PID file
         log(loglevel_t::ERROR, get_name(), ": could not read from pidfile; ", strerror(errno));