| "veyron.io/veyron/veyron2/vlog" |
| func (r *vrt) initSignalHandling() { |
| // TODO(caprita): Given that our node manager implementation is to |
| // kill all child apps when the node manager dies, we should |
| // enable SIGHUP on apps by default. |
| // Automatically handle SIGHUP to prevent applications started as |
| // daemons from being killed. The developer can choose to still listen |
| // on SIGHUP and take a different action if desired. |
| r.signals = make(chan os.Signal, 1) |
| signal.Notify(r.signals, syscall.SIGHUP) |
| vlog.Infof("Received signal %v", <-r.signals) |
| func (r *vrt) shutdownSignalHandling() { |