Project

General

Profile

Task #1585

launchd & upstart: Restart NFD when nrd crashes

Added by Alex Afanasyev over 7 years ago. Updated over 6 years ago.

Status:
Abandoned
Priority:
Low
Category:
Tools
Target version:
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.

#1

Updated by Alex Afanasyev over 7 years ago

  • Target version changed from v0.2 to v0.3
#2

Updated by Junxiao Shi about 7 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);
#3

Updated by Junxiao Shi about 7 years ago

  • Assignee set to Alex Afanasyev
  • Priority changed from Normal to Low
  • Start date deleted (05/09/2014)
#4

Updated by Alex Afanasyev over 6 years ago

  • Status changed from New to Abandoned

No longer relevant, given the we are combining nfd and nrd under the same process (#2489).

Also available in: Atom PDF