Actions
Task #1585
closedlaunchd & upstart: Restart NFD when nrd crashes
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Both launchd and upstart will monitor lifetime and restart nfd and nrd processes if each of them crash.
However, we also should restart nfd process when nrd crashes.
Updated by Alex Afanasyev over 10 years ago
- Target version changed from v0.2 to v0.3
Updated by Junxiao Shi about 10 years ago
- Subject changed from (OSX/launchd and Ubuntu/upstart) Restart NFD when nrd crashes to launchd & upstart: Restart NFD when nrd crashes
- Description updated (diff)
Instead of fiddling with scripts, this can be achieved with syscalls:
pid_t nfd = fork();
if (nfd == 0) {
execve("nfd");
}
pid_t nrd = fork();
if (nrd == 0) {
execve("nrd");
}
wait(); // wait for either NFD or NRD to die
kill(nfd);
kill(nrd);
Updated by Junxiao Shi about 10 years ago
- Assignee set to Alex Afanasyev
- Priority changed from Normal to Low
- Start date deleted (
05/09/2014)
Updated by Alex Afanasyev over 9 years ago
- Status changed from New to Abandoned
No longer relevant, given the we are combining nfd and nrd under the same process (#2489).
Actions