Permalink
Browse files

Less crazy commenting

  • Loading branch information...
1 parent ab990ae commit 9c8005a6e8774d2f89f5e6c87313149e26509e0a @felixge felixge committed with piscisaureus Sep 9, 2011
Showing with 10 additions and 10 deletions.
  1. +10 −10 src/unix/process.c
View
@@ -331,23 +331,23 @@ int uv_spawn_sync(uv_loop_t* loop, uv_spawn_sync_t* spawn) {
spawn->stderr_read = 0;
if (spawn->stdout_buf && pipe(stdout_pipe)) {
- uv_err_new(loop, errno); /* pipe error */
+ uv_err_new(loop, errno);
return -1;
}
if (spawn->stderr_buf && pipe(stderr_pipe)) {
- uv_err_new(loop, errno); /* pipe error */
+ uv_err_new(loop, errno);
return -1;
}
if (pipe(sigchld_pipe)) {
- uv_err_new(loop, errno); /* pipe error */
+ uv_err_new(loop, errno);
return -1;
}
switch (spawn->pid = fork()) {
case -1:
- uv_err_new(loop, errno); /* fork error */
+ uv_err_new(loop, errno);
return -1;
case 0: /* child */
@@ -367,7 +367,7 @@ int uv_spawn_sync(uv_loop_t* loop, uv_spawn_sync_t* spawn) {
}
execvp(spawn->file, spawn->args);
- uv_err_new(loop, errno); /* execvp error */
+ uv_err_new(loop, errno);
_exit(127);
break;
}
@@ -394,7 +394,7 @@ int uv_spawn_sync(uv_loop_t* loop, uv_spawn_sync_t* spawn) {
siga.sa_mask = sigset;
siga.sa_flags = 0;
if (sigaction(SIGCHLD, &siga, (struct sigaction *)NULL) != 0) {
- uv_err_new(loop, errno); /* sigaction error */
+ uv_err_new(loop, errno);
goto error;
}
@@ -428,7 +428,7 @@ int uv_spawn_sync(uv_loop_t* loop, uv_spawn_sync_t* spawn) {
continue;
}
- uv_err_new(loop, errno); /* select error */
+ uv_err_new(loop, errno);
goto error;
}
@@ -461,7 +461,7 @@ int uv_spawn_sync(uv_loop_t* loop, uv_spawn_sync_t* spawn) {
/* @TODO HANDLE EAGAIN / EINTR */
if (r == -1) {
- uv_err_new(loop, errno); /* read error */
+ uv_err_new(loop, errno);
goto error;
}
@@ -477,7 +477,7 @@ int uv_spawn_sync(uv_loop_t* loop, uv_spawn_sync_t* spawn) {
r = read(stderr_pipe[0], spawn->stderr_buf + spawn->stderr_read, spawn->stderr_size - spawn->stderr_read);
if (r == -1) {
- uv_err_new(loop, errno); /* read error */
+ uv_err_new(loop, errno);
goto error;
}
@@ -490,7 +490,7 @@ int uv_spawn_sync(uv_loop_t* loop, uv_spawn_sync_t* spawn) {
pid_t p = wait(&status);
if (p < 0) {
- uv_err_new(loop, errno); /* wait error */
+ uv_err_new(loop, errno);
goto error;
}

0 comments on commit 9c8005a

Please sign in to comment.