Skip to content

Commit

Permalink
pty: fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jul 26, 2021
1 parent 23ed8d1 commit 811fb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pty.c
Expand Up @@ -418,7 +418,7 @@ int pty_spawn(pty_process *process, pty_read_cb read_cb, pty_exit_cb exit_cb) {
pid = forkpty(&master, NULL, NULL, &size);
if (pid < 0) {
status = -errno;
goto error;
return status;
} else if (pid == 0) {
setsid();
int ret = execvp(process->argv[0], process->argv);
Expand Down

0 comments on commit 811fb59

Please sign in to comment.