Browse Source

qrexec-agent: catch failure to deliver signal

Vincent Penquerc'h 10 years ago
parent
commit
511b614f56
1 changed files with 4 additions and 1 deletions
  1. 4 1
      qrexec/qrexec-agent.c

+ 4 - 1
qrexec/qrexec-agent.c

@@ -106,7 +106,10 @@ void wake_meminfo_writer() {
 		/* check within acceptable range */
 		return;
 	}
-	kill(pid, SIGUSR1);
+	if (kill(pid, SIGUSR1) < 0) {
+		/* Can't send signal */
+		return;
+	}
 	meminfo_write_started = 1;
 }