Skip to content

Commit

Permalink
fixup! mock my_execvp
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
zyv committed Aug 30, 2024
1 parent 2bb9b89 commit 791363f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/utilunix.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ my_fork_state (void)
{
pid_t pid;

pid = fork ();
pid = my_fork ();

if (pid < 0)
{
Expand Down
3 changes: 2 additions & 1 deletion src/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "lib/tty/key.h" /* add_select_channel(), delete_select_channel() */
#include "lib/widget.h" /* message() */
#include "lib/event-types.h"
#include "lib/util.h" /* my_fork() */

#include "filemanager/fileopctx.h" /* file_op_context_t */

Expand Down Expand Up @@ -535,7 +536,7 @@ do_background (file_op_context_t *ctx, char *info)
return (-1);
}

pid = fork ();
pid = my_fork ();
if (pid == -1)
{
int saved_errno = errno;
Expand Down
2 changes: 1 addition & 1 deletion src/cons.handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ handle_console_linux (console_action_t action)
break;
}
/* Get the console saver running */
cons_saver_pid = fork ();
cons_saver_pid = my_fork ();
if (cons_saver_pid < 0)
{
/* Cannot fork */
Expand Down
2 changes: 1 addition & 1 deletion src/subshell/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ init_subshell (void)

subshell_alive = TRUE;
subshell_stopped = FALSE;
subshell_pid = fork ();
subshell_pid = my_fork ();

if (subshell_pid == -1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/vfs/shell/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ shell_pipeopen (struct vfs_s_super *super, const char *path, const char *argv[])
if ((pipe (fileset1) < 0) || (pipe (fileset2) < 0))
vfs_die ("Cannot pipe(): %m.");

res = fork ();
res = my_fork ();

if (res != 0)
{
Expand Down

0 comments on commit 791363f

Please sign in to comment.