Lines Matching refs:ig
40 static void sigpipe_init(struct sigpipe_ignore *ig) in sigpipe_init() argument
42 memset(ig, 0, sizeof(*ig)); in sigpipe_init()
43 ig->no_signal = TRUE; in sigpipe_init()
52 struct sigpipe_ignore *ig) in sigpipe_ignore() argument
56 ig->no_signal = data->set.no_signal; in sigpipe_ignore()
60 sigaction(SIGPIPE, NULL, &ig->old_pipe_act); in sigpipe_ignore()
61 action = ig->old_pipe_act; in sigpipe_ignore()
73 static void sigpipe_restore(struct sigpipe_ignore *ig) in sigpipe_restore() argument
75 if(!ig->no_signal) in sigpipe_restore()
77 sigaction(SIGPIPE, &ig->old_pipe_act, NULL); in sigpipe_restore()
81 struct sigpipe_ignore *ig) in sigpipe_apply() argument
83 if(data->set.no_signal != ig->no_signal) { in sigpipe_apply()
84 sigpipe_restore(ig); in sigpipe_apply()
85 sigpipe_ignore(data, ig); in sigpipe_apply()