MustGetPpid returns the parent pid parameter. It panics if an error occurs while trying to get the pid parameter.
()
| 280 | // MustGetPpid returns the parent pid parameter. It panics if |
| 281 | // an error occurs while trying to get the pid parameter. |
| 282 | func (pars Params) MustGetPpid() uint32 { |
| 283 | ppid, err := pars.GetPpid() |
| 284 | if err != nil { |
| 285 | panic(err) |
| 286 | } |
| 287 | return ppid |
| 288 | } |
| 289 | |
| 290 | func (pars Params) getPid(name string) (uint32, error) { |
| 291 | par, err := pars.findParam(name) |