| 379 | |
| 380 | template <class T> |
| 381 | void write_pod(T val) { |
| 382 | static_assert(std::is_pod<T>::value, "can only write POD"); |
| 383 | write(&val, sizeof(T)); |
| 384 | } |
| 385 | |
| 386 | void fork_exec_impl_mainloop(const char* arg) override { |
| 387 | CHECK_SYS_ERR(prctl(PR_SET_PDEATHSIG, SIGKILL)); |