7516c0d1c5
This will avoid to block Ctrl+c if the process we read from takes too much time.
22 lines
484 B
C
22 lines
484 B
C
#ifndef SC_PROCESS_INTR_H
|
|
#define SC_PROCESS_INTR_H
|
|
|
|
#include "common.h"
|
|
|
|
#include "intr.h"
|
|
#include "process.h"
|
|
|
|
bool
|
|
sc_process_check_success_intr(struct sc_intr *intr, sc_pid pid,
|
|
const char *name);
|
|
|
|
ssize_t
|
|
sc_pipe_read_intr(struct sc_intr *intr, sc_pid pid, sc_pipe pipe, char *data,
|
|
size_t len);
|
|
|
|
ssize_t
|
|
sc_pipe_read_all_intr(struct sc_intr *intr, sc_pid pid, sc_pipe pipe,
|
|
char *data, size_t len);
|
|
|
|
#endif
|