Pass return code from main() to exit().
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 19 Sep 2004 07:05:59 +0000 (07:05 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 19 Sep 2004 07:05:59 +0000 (07:05 +0000)
src/lib/user/entry.c

index 4827b03ec065c8567ddf26f02442523f4e84fe01..a707c70ae8bfb075b0ef37f3b4100a0be1b26133 100644 (file)
@@ -6,6 +6,5 @@ void _start (int argc, char *argv[]);
 void
 _start (int argc, char *argv[]) 
 {
-  main (argc, argv);
-  exit (0);
+  exit (main (argc, argv));
 }