mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix a potential race with helper processes terminating too quickly. When
this happens, hald dies. PR: 151725 Submitted by: avg
This commit is contained in:
parent
34625857b2
commit
18cd6aae93
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264292
2 changed files with 12 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
PORTNAME= hal
|
||||
DISTVERSION= 0.5.14
|
||||
PORTREVISION= 9
|
||||
PORTREVISION= 10
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://hal.freedesktop.org/releases/
|
||||
|
||||
|
|
11
sysutils/hal/files/patch-hald-runner_runner.c
Normal file
11
sysutils/hal/files/patch-hald-runner_runner.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- hald-runner/runner.c.orig 2010-11-05 19:26:05.673393765 +0200
|
||||
+++ hald-runner/runner.c 2010-11-05 19:26:33.471393058 +0200
|
||||
@@ -281,7 +281,7 @@ run_request_run (run_request *r, DBusCon
|
||||
}
|
||||
g_free (program_dir);
|
||||
|
||||
- if (r->input) {
|
||||
+ if (r->input && strlen(r->input) > 0) {
|
||||
if (write(stdin_v, r->input, strlen(r->input)) != (ssize_t) strlen(r->input))
|
||||
printf("Warning: Error while writing r->input (%s) to stdin_v.\n", r->input);
|
||||
close(stdin_v);
|
Loading…
Add table
Reference in a new issue