Project

General

Profile

Actions

Task #1585

closed

launchd & upstart: Restart NFD when nrd crashes

Added by Alex Afanasyev almost 10 years ago. Updated about 9 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.

Actions #1

Updated by Alex Afanasyev almost 10 years ago

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

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

Updated by Junxiao Shi over 9 years ago

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

Updated by Alex Afanasyev about 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

Also available in: Atom PDF