aboutsummaryrefslogtreecommitdiffstats
path: root/exec/exec1.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec1.c')
-rw-r--r--exec/exec1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exec/exec1.c b/exec/exec1.c
index aaff9a94c62..cbd756d3d5c 100644
--- a/exec/exec1.c
+++ b/exec/exec1.c
@@ -42,6 +42,9 @@ main (int argc, char **argv)
42 extern char **environ; 42 extern char **environ;
43 int wstatus; 43 int wstatus;
44 44
45 /* Provide the file name of the loader. */
46 exec_init (argv[1]);
47
45 pid1 = getpid (); 48 pid1 = getpid ();
46 pid = fork (); 49 pid = fork ();
47 50
@@ -58,9 +61,6 @@ main (int argc, char **argv)
58 } 61 }
59 else 62 else
60 { 63 {
61 /* Provide the file name of the loader. */
62 exec_init (argv[1]);
63
64 if (after_fork (pid)) 64 if (after_fork (pid))
65 exit (127); 65 exit (127);
66 66