[go: up one dir, main page]

Module panic

Module panic 

Source
Expand description

Custom panic hooks that allow silencing certain types of errors.

Use the mute_sigpipe_panic function to silence panics caused by broken pipe errors. This can happen when a process is still producing data when the consuming process terminates and closes the pipe. For example,

$ seq inf | head -n 1

Functionsยง

mute_sigpipe_panic
Terminate without error on panics that occur due to broken pipe errors.