Commits

geekman committed 70ac3e9

Used kill() instead of getsid() to verify pid, as getsid() may not have been compiled into uClibc.

  • Participants
  • Parent commits ab455f2

Comments (0)

Files changed (1)

 		count = fscanf(f, "%d", &pid);
 		fclose(f);
 		if (count == 1) {
-			// see if pid exists (works on daemonized instances only)
-			if (getsid(pid) > 0)
+			if (kill(pid, 0) == 0)
 				return pid;
 		}
 	}