Skip to content

Commit

Permalink
Explicitly handle EINTR in posix process_create
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed Nov 3, 2018
1 parent 2c4a41c commit 3bdf728
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reproc/posix/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ REPROC_ERROR process_create(int (*action)(const void *), const void *data,
case ENOTDIR: error = REPROC_FILE_NOT_FOUND; break;
case EMFILE: error = REPROC_PIPE_LIMIT_REACHED; break;
case ENAMETOOLONG: error = REPROC_NAME_TOO_LONG; break;
case EINTR: error = REPROC_INTERRUPTED; break;
default: error = REPROC_UNKNOWN_ERROR; break;
}

Expand Down

0 comments on commit 3bdf728

Please sign in to comment.